Install LSP functionality and implemented editor settings
This commit is contained in:
		@@ -1 +1,2 @@
 | 
			
		||||
require("luke-else.packer")
 | 
			
		||||
require("luke-else.packer")
 | 
			
		||||
require("lua.luke-else.set")
 | 
			
		||||
@@ -23,4 +23,27 @@ return require('packer').startup(function(use)
 | 
			
		||||
    use("mbbill/undotree")
 | 
			
		||||
    use("tpope/vim-fugitive")
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        'VonHeikemen/lsp-zero.nvim',
 | 
			
		||||
        branch = 'v1.x',
 | 
			
		||||
        requires = {
 | 
			
		||||
            -- LSP Support
 | 
			
		||||
            {'neovim/nvim-lspconfig'},
 | 
			
		||||
            {'williamboman/mason.nvim'},
 | 
			
		||||
            {'williamboman/mason-lspconfig.nvim'},
 | 
			
		||||
 | 
			
		||||
            -- Autocompletion
 | 
			
		||||
            {'hrsh7th/nvim-cmp'},
 | 
			
		||||
            {'hrsh7th/cmp-buffer'},
 | 
			
		||||
            {'hrsh7th/cmp-path'},
 | 
			
		||||
            {'saadparwaiz1/cmp_luasnip'},
 | 
			
		||||
            {'hrsh7th/cmp-nvim-lsp'},
 | 
			
		||||
            {'hrsh7th/cmp-nvim-lua'},
 | 
			
		||||
 | 
			
		||||
            -- Snippets
 | 
			
		||||
            {'L3MON4D3/LuaSnip'},
 | 
			
		||||
            {'rafamadriz/friendly-snippets'},
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
end)
 | 
			
		||||
							
								
								
									
										29
									
								
								nvim/lua/luke-else/set.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								nvim/lua/luke-else/set.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
vim.opt.nu = true
 | 
			
		||||
vim.opt.relativenumber = true
 | 
			
		||||
 | 
			
		||||
vim.opt.tabstop = 4
 | 
			
		||||
vim.opt.softtabstop = 4
 | 
			
		||||
vim.opt.shiftwidth = 4
 | 
			
		||||
vim.opt.expandtab = true
 | 
			
		||||
 | 
			
		||||
vim.opt.smartindent = true
 | 
			
		||||
 | 
			
		||||
vim.opt.wrap = false
 | 
			
		||||
 | 
			
		||||
vim.opt.swapfile = false
 | 
			
		||||
vim.opt.backup = false
 | 
			
		||||
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
 | 
			
		||||
vim.opt.undofile = true
 | 
			
		||||
 | 
			
		||||
vim.opt.hlsearch = false
 | 
			
		||||
vim.opt.incsearch = true
 | 
			
		||||
 | 
			
		||||
vim.opt.termguicolors = true
 | 
			
		||||
 | 
			
		||||
vim.opt.scrolloff = 8
 | 
			
		||||
vim.opt.signcolumn = "yes"
 | 
			
		||||
vim.opt.isfname:append("@-@")
 | 
			
		||||
 | 
			
		||||
vim.opt.updatetime = 50
 | 
			
		||||
 | 
			
		||||
vim.opt.colorcolumn = "80"
 | 
			
		||||
		Reference in New Issue
	
	Block a user