diff --git a/lazy-lock.json b/lazy-lock.json index 6e032ef..093a9b8 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,6 +1,5 @@ { "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, - "LuaSnip": { "branch": "master", "commit": "df58ee1664cfda71479cd2bbd56114f56599eba6" }, "cellular-automaton.nvim": { "branch": "main", "commit": "b7d056dab963b5d3f2c560d92937cb51db61cb5b" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index 594cad5..5ef6fcf 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -61,7 +61,6 @@ return { require("Comment").setup() end }, - { "L3MON4D3/LuaSnip", event = "InsertEnter", }, -- Surround { 'tpope/vim-surround', event = "BufRead", }, } diff --git a/lua/plugins/lsp/config.lua b/lua/plugins/lsp/config.lua index 8e9cbff..517b6d1 100644 --- a/lua/plugins/lsp/config.lua +++ b/lua/plugins/lsp/config.lua @@ -19,7 +19,7 @@ lsp_zero.set_sign_icons({ }) vim.diagnostic.config({ - virtual_text = false, + virtual_text = true, severity_sort = true, float = { style = 'minimal', @@ -67,7 +67,3 @@ require('mason-lspconfig').setup({ 'zls', }, }) - -vim.diagnostic.config({ - virtual_text = true -}) diff --git a/lua/plugins/lsp/keymaps.lua b/lua/plugins/lsp/keymaps.lua deleted file mode 100644 index 7e0532e..0000000 --- a/lua/plugins/lsp/keymaps.lua +++ /dev/null @@ -1,21 +0,0 @@ -vim.keymap.set('n', 'do', vim.diagnostic.open_float) -vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) -vim.keymap.set('n', ']d', vim.diagnostic.goto_next) -vim.keymap.set('n', 'q', vim.diagnostic.setloclist) -vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts) -vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts) -vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts) -vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, opts) -vim.keymap.set('n', '', vim.lsp.buf.signature_help, opts) -vim.keymap.set('n', 'wa', vim.lsp.buf.add_workspace_folder, opts) -vim.keymap.set('n', 'wr', vim.lsp.buf.remove_workspace_folder, opts) -vim.keymap.set('n', 'wl', function() - print(vim.inspect(vim.lsp.buf.list_workspace_folders())) -end, opts) -vim.keymap.set('n', 'D', vim.lsp.buf.type_definition, opts) -vim.keymap.set('n', 'rn', vim.lsp.buf.rename, opts) -vim.keymap.set({ 'n', 'v' }, 'ca', vim.lsp.buf.code_action, opts) -vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts) -vim.keymap.set('n', '', function() - vim.lsp.buf.format { async = true } -end, opts)