Initial commit; lsp treesitter telescope undotree formatter colors

This commit is contained in:
2023-04-09 23:22:45 +02:00
commit e2780cfe9d
14 changed files with 159 additions and 0 deletions

2
lua/flip/init.lua Normal file
View File

@@ -0,0 +1,2 @@
require("flip.remap")
require("flip.set")

52
lua/flip/packer.lua Normal file
View File

@@ -0,0 +1,52 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Only required if you have packer configured as `opt`
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
use {
'nvim-telescope/telescope.nvim', tag = '0.1.1',
-- or , branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} }
}
use ({
'tanvirtin/monokai.nvim',
as = 'monokai',
config = function()
vim.cmd('colorscheme monokai')
end
})
use ('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
use ('nvim-treesitter/playground')
use ('theprimeagen/harpoon')
use ('mbbill/undotree')
use ('tpope/vim-fugitive')
use ('sbdchd/neoformat')
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x',
requires = {
-- LSP Support
{'neovim/nvim-lspconfig'}, -- Required
{ -- Optional
'williamboman/mason.nvim',
run = function()
pcall(vim.cmd, 'MasonUpdate')
end,
},
{'williamboman/mason-lspconfig.nvim'}, -- Optional
-- Autocompletion
{'hrsh7th/nvim-cmp'}, -- Required
{'hrsh7th/cmp-nvim-lsp'}, -- Required
{'L3MON4D3/LuaSnip'}, -- Required
}
}
end)

2
lua/flip/remap.lua Normal file
View File

@@ -0,0 +1,2 @@
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)

36
lua/flip/set.lua Normal file
View File

@@ -0,0 +1,36 @@
-- Setting line numbers
vim.opt.nu = true
vim.opt.relativenumber = true
-- Setting tabs correctly
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true
-- Setting backup / undo stuff
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
-- Search highlighting
vim.opt.hlsearch = false
vim.opt.incsearch = true
-- Colouring
vim.opt.termguicolors = true
-- Scrolling stuff
vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
-- Update time
vim.opt.updatetime = 50
vim.opt.colorcolumn = "120"
vim.g.mapleader = " "