diff options
Diffstat (limited to '.config/nvim/lua/plugins/lsp.lua')
-rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index d8bf2f7..6ddab1c 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua | |||
@@ -2,8 +2,6 @@ return { | |||
2 | { | 2 | { |
3 | "neovim/nvim-lspconfig", | 3 | "neovim/nvim-lspconfig", |
4 | dependencies = { | 4 | dependencies = { |
5 | "williamboman/mason.nvim", | ||
6 | "williamboman/mason-lspconfig.nvim", | ||
7 | "j-hui/fidget.nvim", | 5 | "j-hui/fidget.nvim", |
8 | "folke/neodev.nvim", | 6 | "folke/neodev.nvim", |
9 | "RRethy/vim-illuminate", | 7 | "RRethy/vim-illuminate", |
@@ -16,19 +14,6 @@ return { | |||
16 | map('n', '[d', vim.diagnostic.goto_prev, "lsp: goto previous diagnostic") | 14 | map('n', '[d', vim.diagnostic.goto_prev, "lsp: goto previous diagnostic") |
17 | map('n', ']d', vim.diagnostic.goto_next, "lsp: goto next diagnostic") | 15 | map('n', ']d', vim.diagnostic.goto_next, "lsp: goto next diagnostic") |
18 | 16 | ||
19 | -- set up mason before anything else | ||
20 | require("mason").setup() | ||
21 | require("mason-lspconfig").setup({ | ||
22 | ensure_installed = { | ||
23 | "lua_ls", | ||
24 | "pylsp", | ||
25 | }, | ||
26 | automatic_installation = true, | ||
27 | }) | ||
28 | |||
29 | -- quick access via keymap | ||
30 | require("helpers.keys").map("n", "<leader>M", "<cmd>Mason<cr>", "show mason") | ||
31 | |||
32 | -- neodev setup before lsp config | 17 | -- neodev setup before lsp config |
33 | require("neodev").setup() | 18 | require("neodev").setup() |
34 | 19 | ||