diff options
Diffstat (limited to 'dot_config/nvim/lua/plugins/lsp-zero.lua')
| -rw-r--r-- | dot_config/nvim/lua/plugins/lsp-zero.lua | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/dot_config/nvim/lua/plugins/lsp-zero.lua b/dot_config/nvim/lua/plugins/lsp-zero.lua index a234493..67ea808 100644 --- a/dot_config/nvim/lua/plugins/lsp-zero.lua +++ b/dot_config/nvim/lua/plugins/lsp-zero.lua @@ -18,44 +18,16 @@ return { config = true, }, - -- Autocompletion - { - 'hrsh7th/nvim-cmp', - event = 'InsertEnter', - dependencies = { - { 'L3MON4D3/LuaSnip' }, - }, - config = function() - -- Here is where you configure the autocompletion settings. - local lsp_zero = require('lsp-zero') - lsp_zero.extend_cmp() - - -- And you can configure cmp even more, if you want to. - local cmp = require('cmp') - local cmp_action = lsp_zero.cmp_action() - - cmp.setup({ - formatting = lsp_zero.cmp_format({details = true}), - mapping = cmp.mapping.preset.insert({ - ['<C-Space>'] = cmp.mapping.complete(), - ['<C-u>'] = cmp.mapping.scroll_docs(-8), - ['<C-d>'] = cmp.mapping.scroll_docs(8), - -- ['<C-f>'] = cmp.mapping.luasnip_jump_forward(), - -- ['<C-b>'] = cmp.mapping.luasnip_jump_backward(), - }) - }) - end - }, -- LSP { 'neovim/nvim-lspconfig', - cmd = {'LspInfo', 'LspInstall', 'LspStart'}, - event = {'BufReadPre', 'BufNewFile'}, + cmd = { 'LspInfo', 'LspInstall', 'LspStart' }, + event = { 'BufReadPre', 'BufNewFile' }, dependencies = { { 'hrsh7th/cmp-nvim-lsp' }, { 'williamboman/mason-lspconfig.nvim' }, - { "j-hui/fidget.nvim", tag = "legacy", opts = {} }, + { "j-hui/fidget.nvim", tag = "legacy", opts = {} }, }, config = function() -- This is where all the LSP shenanigans will live @@ -67,7 +39,7 @@ return { lsp_zero.on_attach(function(client, bufnr) -- see :help lsp_zero_keybindings -- to learn the available actions - lsp_zero.default_keymaps({buffer = bufnr}) + lsp_zero.default_keymaps({ buffer = bufnr }) end) require('mason-lspconfig').setup({ |
