Compare commits
No commits in common. "b535afb6d9259e0ec18e2e7fda54384b48264746" and "902fbd939c74ece8fabe543e511af36471a1a197" have entirely different histories.
b535afb6d9
...
902fbd939c
1 changed files with 31 additions and 34 deletions
|
@ -16,7 +16,11 @@ return {
|
|||
local lspconfig = require("lspconfig")
|
||||
-- This function gets run when an LSP connects to a particular buffer.
|
||||
local on_attach = function(_, bufnr)
|
||||
-- We create a function that lets us more easily define mappings specific
|
||||
-- NOTE: Remember that lua is a real programming language, and as such it is possible
|
||||
-- to define small helper and utility functions so you don't have to repeat yourself
|
||||
-- many times.
|
||||
--
|
||||
-- In this case, we create a function that lets us more easily define mappings specific
|
||||
-- for LSP related items. It sets the mode, buffer and description for us each time.
|
||||
local nmap = function(keys, func, desc)
|
||||
if desc then
|
||||
|
@ -55,6 +59,32 @@ return {
|
|||
end
|
||||
|
||||
local servers = {
|
||||
bashls = {
|
||||
bashIde = {
|
||||
globPattern = "*@(.sh|.inc|.bash|.command)",
|
||||
},
|
||||
},
|
||||
lua_ls = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { "vim" } },
|
||||
workspace = { checkThirdParty = false },
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
html = {},
|
||||
jqls = {},
|
||||
jsonls = {
|
||||
json = {
|
||||
format = {
|
||||
enable = true,
|
||||
},
|
||||
schemas = require("schemastore").json.schemas(),
|
||||
validate = true,
|
||||
},
|
||||
},
|
||||
marksman = {},
|
||||
nil_ls = {},
|
||||
nixd = {},
|
||||
basedpyright = {
|
||||
analysis = {
|
||||
autoImportCompletions = true,
|
||||
|
@ -72,44 +102,11 @@ return {
|
|||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
},
|
||||
bashls = {
|
||||
bashIde = {
|
||||
globPattern = "*@(.sh|.inc|.bash|.command)",
|
||||
},
|
||||
},
|
||||
html = {},
|
||||
jqls = {},
|
||||
jsonls = {
|
||||
json = {
|
||||
format = {
|
||||
enable = true,
|
||||
},
|
||||
schemas = require("schemastore").json.schemas(),
|
||||
validate = true,
|
||||
},
|
||||
},
|
||||
lua_ls = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { "vim" } },
|
||||
workspace = { checkThirdParty = false },
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
marksman = {},
|
||||
nil_ls = {},
|
||||
nixd = {},
|
||||
rust_analyzer = {
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
sourcekit = {
|
||||
workspace = {
|
||||
didChangeConfiguration = {
|
||||
dynamicRegistration = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
ts_ls = {},
|
||||
yamlls = {},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue