mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 01:26:46 +00:00
new lsp thing
This commit is contained in:
18
.config/nvim/lsp/clangd.lua
Normal file
18
.config/nvim/lsp/clangd.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
-- From the clangd configuration in <rtp>/lsp/clangd.lua
|
||||
cmd = { 'clangd' },
|
||||
-- From the clangd configuration in <rtp>/lsp/clangd.lua
|
||||
-- Overrides the "*" configuration in init.lua
|
||||
root_markers = { '.clangd', 'compile_commands.json' },
|
||||
-- From the clangd configuration in init.lua
|
||||
-- Overrides the clangd configuration in <rtp>/lsp/clangd.lua
|
||||
filetypes = { 'c' },
|
||||
-- From the "*" configuration in init.lua
|
||||
capabilities = {
|
||||
textDocument = {
|
||||
semanticTokens = {
|
||||
multilineTokenSupport = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
0
.config/nvim/lsp/gopls.lua
Normal file
0
.config/nvim/lsp/gopls.lua
Normal file
20
.config/nvim/lsp/lua-language-server.lua
Normal file
20
.config/nvim/lsp/lua-language-server.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
cmd = { 'lua-language-server' },
|
||||
-- Filetypes to automatically attach to.
|
||||
filetypes = { 'lua' },
|
||||
-- Sets the "root directory" to the parent directory of the file in the
|
||||
-- current buffer that contains either a ".luarc.json" or a
|
||||
-- ".luarc.jsonc" file. Files that share a root directory will reuse
|
||||
-- the connection to the same LSP server.
|
||||
root_markers = { '.luarc.json', '.luarc.jsonc' },
|
||||
-- Specific settings to send to the server. The schema for this is
|
||||
-- defined by the server. For example the schema for lua-language-server
|
||||
-- can be found here https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
version = 'LuaJIT',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
20
.config/nvim/lsp/pyright.lua
Normal file
20
.config/nvim/lsp/pyright.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
cmd = { 'pyright' },
|
||||
filetypes = { 'python' },
|
||||
root_markers = {
|
||||
'pyproject.toml',
|
||||
'setup.py',
|
||||
'setup.cfg',
|
||||
'requirements.txt',
|
||||
'Pipfile',
|
||||
'pyrightconfig.json',
|
||||
},
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
0
.config/nvim/lsp/rust-analyzer.lua
Normal file
0
.config/nvim/lsp/rust-analyzer.lua
Normal file
0
.config/nvim/lsp/tsls.lua
Normal file
0
.config/nvim/lsp/tsls.lua
Normal file
0
.config/nvim/lsp/yaml-language-server.lua
Normal file
0
.config/nvim/lsp/yaml-language-server.lua
Normal file
Reference in New Issue
Block a user