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:
2025-12-31 16:45:29 -06:00
parent 2d605cd9cd
commit 11c68f3743
11 changed files with 123 additions and 179 deletions

View File

View File

@@ -0,0 +1,5 @@
return {
flags = {
debounce_text_changes = 100,
}
}

11
nvim/after/lsp/lua_ls.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
settings = {
Lua = {
diagnostics = {
globals = {
'vim'
}
}
}
}
}

View File

@@ -0,0 +1,3 @@
return {
filetypes = { 'md', 'markdown', 'telekasten' }
}

21
nvim/after/lsp/pylsp.lua Normal file
View File

@@ -0,0 +1,21 @@
return {
settings = {
pylsp = {
plugins = {
pycodestyle = {
enabled = false,
ignore = {
'E501'
},
maxLineLength = 120,
},
pylint = {
enabled = true,
args = {
'--disable=line-too-long'
},
}
}
}
}
}

View 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,
}
}
}
}
}