You've already forked dotfiles
fix: Moving the LSP configs out of the Mason file, using the new vim.lsp.config way of configuring LSPs, adding the 'after' config directory for LSP specific configs that override/extend those in the 'lsp' dir and fit with the new configuration way of NVIM 0.11+, moving shortcuts to lspconfig instead of Mason, removing the rename custom function in telescope and using the LSP based function.
This commit is contained in:
0
nvim/after/lsp/cfn-lint.lua
Normal file
0
nvim/after/lsp/cfn-lint.lua
Normal file
5
nvim/after/lsp/gdscript.lua
Normal file
5
nvim/after/lsp/gdscript.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
flags = {
|
||||
debounce_text_changes = 100,
|
||||
}
|
||||
}
|
||||
11
nvim/after/lsp/lua_ls.lua
Normal file
11
nvim/after/lsp/lua_ls.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = {
|
||||
'vim'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
3
nvim/after/lsp/marksman.lua
Normal file
3
nvim/after/lsp/marksman.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
filetypes = { 'md', 'markdown', 'telekasten' }
|
||||
}
|
||||
21
nvim/after/lsp/pylsp.lua
Normal file
21
nvim/after/lsp/pylsp.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
settings = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
pycodestyle = {
|
||||
enabled = false,
|
||||
ignore = {
|
||||
'E501'
|
||||
},
|
||||
maxLineLength = 120,
|
||||
},
|
||||
pylint = {
|
||||
enabled = true,
|
||||
args = {
|
||||
'--disable=line-too-long'
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
21
nvim/after/lsp/rust_analyzer.lua
Normal file
21
nvim/after/lsp/rust_analyzer.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
settings = {
|
||||
['rust_analyzer'] = {
|
||||
check = {
|
||||
command = 'clippy',
|
||||
extraArgs = {
|
||||
'--',
|
||||
'-D clippy::all',
|
||||
'-W clippy::pedantic',
|
||||
'-W clippy::restriction'
|
||||
},
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
experimental = {
|
||||
enable = true,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user