big changes on neovim
This commit is contained in:
parent
cddb6edde7
commit
6d492f07ba
26 changed files with 242 additions and 291 deletions
30
dotfiles/nvim/lua/neoconf/lazy/lsp.lua
Normal file
30
dotfiles/nvim/lua/neoconf/lazy/lsp.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
-- lua_ls avec tes settings perso
|
||||
vim.lsp.config("lua_ls", {
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { "vim" } },
|
||||
workspace = { library = vim.api.nvim_get_runtime_file("", true) },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- active tous les serveurs ; leurs configs viennent des
|
||||
-- fichiers lsp/*.lua fournis par nvim-lspconfig (chargé ici)
|
||||
vim.lsp.enable({
|
||||
"lua_ls",
|
||||
"texlab",
|
||||
"marksman",
|
||||
"pyright",
|
||||
"bashls",
|
||||
"clangd",
|
||||
"cssls",
|
||||
"jsonls",
|
||||
"html",
|
||||
"ts_ls",
|
||||
"vimls",
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue