fix nvim-lint, other fixes
This commit is contained in:
parent
c84e455173
commit
81c6df2323
6 changed files with 23 additions and 24 deletions
|
@ -13,13 +13,13 @@ return {
|
|||
"tsserver",
|
||||
"cssls",
|
||||
"cssmodules_ls",
|
||||
"diagnosticls",
|
||||
"jsonls",
|
||||
"lua_ls",
|
||||
"sqlls",
|
||||
"yamlls",
|
||||
"lemminx",
|
||||
"marksman"
|
||||
"marksman",
|
||||
"html",
|
||||
},
|
||||
-- Whether servers that are set up (via lspconfig) should be automatically installed if they're not already installed.
|
||||
-- This setting has no relation with the `ensure_installed` setting.
|
||||
|
@ -28,6 +28,6 @@ return {
|
|||
-- - true: All servers set up via lspconfig are automatically installed.
|
||||
-- - { exclude: string[] }: All servers set up via lspconfig, except the ones provided in the list, are automatically installed.
|
||||
-- Example: automatic_installation = { exclude = { "rust_analyzer", "solargraph" } }
|
||||
automatic_installation = false,
|
||||
automatic_installation = true,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,13 +2,13 @@ return {
|
|||
init = function()
|
||||
require('lint').linters_by_ft = {
|
||||
--python = {
|
||||
--'ruff'
|
||||
--'ruff',
|
||||
--'flake8',
|
||||
--'pylint',
|
||||
--'pycodestyle',
|
||||
--'pydocstyle'
|
||||
--},
|
||||
php = { 'phpcs' },
|
||||
php = { 'phpcs', },
|
||||
markdown = { 'markdownlint' }
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,11 @@ return {
|
|||
--'--disable=C0114', -- disable missing module docstring info
|
||||
--}
|
||||
|
||||
--vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
--callback = function()
|
||||
--require("lint").try_lint()
|
||||
--end,
|
||||
--})
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||
callback = function()
|
||||
|
|
|
@ -151,11 +151,6 @@ return {
|
|||
capabilities = capabilities,
|
||||
}
|
||||
|
||||
require 'lspconfig'.diagnosticls.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
|
||||
require 'lspconfig'.jsonls.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
|
@ -193,5 +188,9 @@ return {
|
|||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
require 'lspconfig'.html.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
end
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ return function()
|
|||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false, -- default=false
|
||||
additional_vim_regex_highlighting = true, -- default=false
|
||||
},
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue