diff options
| author | dacctal <dacctalyt@gmail.com> | 2026-04-19 15:58:03 +0000 |
|---|---|---|
| committer | dacctal <dacctalyt@gmail.com> | 2026-04-19 15:58:03 +0000 |
| commit | 2e6e6d04b2c24a0666b015ef4f73718e2fe7c861 (patch) | |
| tree | 51ee086d8e075d0d01ce01a1855058f95ecdf74d /.config/nvim-lazy/lua/plugins/lspconfig.lua | |
| parent | d19b491454c9f793d2e311dd09f70a88240dda29 (diff) | |
added vis and nvim-12+ configs
Diffstat (limited to '.config/nvim-lazy/lua/plugins/lspconfig.lua')
| -rwxr-xr-x | .config/nvim-lazy/lua/plugins/lspconfig.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.config/nvim-lazy/lua/plugins/lspconfig.lua b/.config/nvim-lazy/lua/plugins/lspconfig.lua new file mode 100755 index 0000000..bd748fc --- /dev/null +++ b/.config/nvim-lazy/lua/plugins/lspconfig.lua @@ -0,0 +1,35 @@ +return { + "neovim/nvim-lspconfig", + event = { "BufReadPre", "BufNewFile" }, + dependencies = { + "hrsh7th/cmp-nvim-lsp", + { "antosha417/nvim-lsp-file-operations", config = true }, + }, + config = function() + vim.diagnostic.config({ + update_in_insert = true, + float = { + focusable = false, + style = "minimal", + border = "rounded", + source = "always", + header = "", + prefix = "", + } + }) + + vim.diagnostic.config({ virtual_text = true }) + + local lsp_configurations = require('lspconfig.configs') + + local capabilities = vim.tbl_deep_extend( + "force", + {}, + vim.lsp.protocol.make_client_capabilities(), + require('cmp_nvim_lsp').default_capabilities() + ) + end, + vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts), + vim.keymap.set("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts), + vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts) +} |
