mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
In this new structure, the main configuration for a LSP server is provided by the plugin nvim-lspconfig. Some of the config may be overridden by the configuration under directory `after/lsp/xxx.lua`, where `xxx` is the lsp server name used by nvim-lspconfig. Note that it is necessary to put the custom lsp server configuration under `after/` directory, in order to correctly override the config provided by nvim-lspconfig.
18 lines
451 B
Lua
18 lines
451 B
Lua
local lsp_utils = require("lsp_utils")
|
|
|
|
-- settings for lua-language-server can be found on https://luals.github.io/wiki/settings/
|
|
return {
|
|
settings = {
|
|
Lua = {
|
|
runtime = {
|
|
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
|
version = "LuaJIT",
|
|
},
|
|
hint = {
|
|
enable = true,
|
|
},
|
|
},
|
|
},
|
|
capabilities = lsp_utils.get_default_capabilities(),
|
|
}
|