Moved LSP configs to new lsp/ folder, moved lsp config to seperate fiel, and simplified mason tool installer config
This commit is contained in:
3
nvim/dot-config/nvim/lsp/clangd.lua
Normal file
3
nvim/dot-config/nvim/lsp/clangd.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
cmd = { "clangd", "--offset-encoding=utf-16", "--clang-tidy" },
|
||||
}
|
||||
8
nvim/dot-config/nvim/lsp/jsonls.lua
Normal file
8
nvim/dot-config/nvim/lsp/jsonls.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
settings = {
|
||||
json = {
|
||||
validate = { enable = true },
|
||||
schemas = require("schemastore").json.schemas(),
|
||||
},
|
||||
},
|
||||
}
|
||||
8
nvim/dot-config/nvim/lsp/lua_ls.lua
Normal file
8
nvim/dot-config/nvim/lsp/lua_ls.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
settings = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false },
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
}
|
||||
9
nvim/dot-config/nvim/lsp/rust_analyzer.lua
Normal file
9
nvim/dot-config/nvim/lsp/rust_analyzer.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
check = {
|
||||
command = "clippy",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
5
nvim/dot-config/nvim/lsp/typos_lsp.lua
Normal file
5
nvim/dot-config/nvim/lsp/typos_lsp.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
init_options = {
|
||||
diagnosticSeverity = "Hint",
|
||||
},
|
||||
}
|
||||
8
nvim/dot-config/nvim/lsp/yamlls.lua
Normal file
8
nvim/dot-config/nvim/lsp/yamlls.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return require("schema-companion").setup_client({
|
||||
settings = {
|
||||
yaml = {
|
||||
schemastore = { enable = false, url = "" },
|
||||
schemas = require("schemastore").yaml.schemas(),
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user