Improve LSP configs and change keybindings to align with default nvim
0.11 ones
This commit is contained in:
parent
f9f53656f7
commit
0eea4c8dab
33 changed files with 656 additions and 553 deletions
|
|
@ -43,15 +43,19 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||
})
|
||||
|
||||
vim.diagnostic.config({
|
||||
virtual_lines = true
|
||||
virtual_lines = {
|
||||
current_line = true
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
|
||||
opts = {
|
||||
tools_to_install = {
|
||||
"lua-language-server", "vtsls", "ruff", "mypy", "black", "pyright", "tailwindcss-language-server",
|
||||
"lua-language-server", "vtsls", "ruff", "mypy", "black",
|
||||
"pyright", "tailwindcss-language-server",
|
||||
"eslint-lsp", "lemminx", "gopls"
|
||||
}
|
||||
},
|
||||
|
|
@ -69,7 +73,9 @@ return {
|
|||
},
|
||||
{
|
||||
"nvimtools/none-ls.nvim",
|
||||
config = function(_, opts)
|
||||
dependencies = { "nvimtools/none-ls-extras.nvim" },
|
||||
|
||||
config = function()
|
||||
local null_ls = require("null-ls")
|
||||
null_ls.setup({
|
||||
on_attach = function(client, bufnr)
|
||||
|
|
@ -81,6 +87,4 @@ return {
|
|||
})
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue