diff options
author | kdx <kdx@42l.fr> | 2023-01-19 20:14:49 +0100 |
---|---|---|
committer | kdx <kdx@42l.fr> | 2023-01-19 20:14:49 +0100 |
commit | 18fc1c61fadb49ca3914f21b7153a73c6cf10c1b (patch) | |
tree | 34a9c162b1eb11c047b4d410fe141d0b2a698fba | |
parent | ecd6f3c52c64720b35e1e51480ba55bef954827b (diff) | |
download | nvim-config-18fc1c61fadb49ca3914f21b7153a73c6cf10c1b.tar.gz |
simple lsp setup
-rw-r--r-- | init.lua | 1 | ||||
-rw-r--r-- | lsp.lua | 9 | ||||
-rw-r--r-- | plugs.lua | 3 |
3 files changed, 13 insertions, 0 deletions
@@ -2,6 +2,7 @@ local cfg = "/home/kdx/.config/nvim/" dofile(cfg .. "map.lua") dofile(cfg .. "plugs.lua") dofile(cfg .. "treesitter.lua") +dofile(cfg .. "lsp.lua") local indent = 8 @@ -0,0 +1,9 @@ +local lsps = { + "clangd", + "rust_analyzer", +} +require("mason").setup { ensure_installed = lsps } +require("mason-lspconfig").setup() +for _, lsp in ipairs(lsps) do + require("lspconfig")[lsp].setup({}) +end @@ -10,4 +10,7 @@ require("paq")({ end }; "junegunn/fzf.vim"; + "neovim/nvim-lspconfig"; + "williamboman/mason.nvim"; + "williamboman/mason-lspconfig.nvim"; }) |