mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-04 04:35:29 +00:00
fix(nvim): temporary solution for eslint diagnostics
This uses none-ls to enable typescript-eslint diagnostics. But it is recommended to use the eslint-lsp instead. Haven't figured out how to get typescript-eslint diagnostics with eslint-lsp yet.
This commit is contained in:
@@ -68,6 +68,7 @@
|
|||||||
"neotest-vitest": { "branch": "main", "commit": "c0ea475596483eb02fa8e92c6be65c0536d55630" },
|
"neotest-vitest": { "branch": "main", "commit": "c0ea475596483eb02fa8e92c6be65c0536d55630" },
|
||||||
"noctis.nvim": { "branch": "main", "commit": "0b9336e39c686a7e58de06e4dd38c2bd862a7b33" },
|
"noctis.nvim": { "branch": "main", "commit": "0b9336e39c686a7e58de06e4dd38c2bd862a7b33" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
|
"noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
|
||||||
|
"none-ls.nvim": { "branch": "main", "commit": "793c6071621814c61a14c24cdb43e9badd88f0af" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "c3c7fd618dcb5a89e443a2e1033e7d11fdb0596b" },
|
"nui.nvim": { "branch": "main", "commit": "c3c7fd618dcb5a89e443a2e1033e7d11fdb0596b" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
|
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
|
||||||
"nvim-code-action-menu": { "branch": "main", "commit": "8c7672a4b04d3cc4edd2c484d05b660a9cb34a1b" },
|
"nvim-code-action-menu": { "branch": "main", "commit": "8c7672a4b04d3cc4edd2c484d05b660a9cb34a1b" },
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
"lazyvim.plugins.extras.editor.aerial",
|
"lazyvim.plugins.extras.editor.aerial",
|
||||||
"lazyvim.plugins.extras.formatting.prettier",
|
"lazyvim.plugins.extras.formatting.prettier",
|
||||||
"lazyvim.plugins.extras.lang.tailwind",
|
"lazyvim.plugins.extras.lang.tailwind",
|
||||||
"lazyvim.plugins.extras.lang.yaml"
|
"lazyvim.plugins.extras.lang.yaml",
|
||||||
|
"lazyvim.plugins.extras.lsp.none-ls"
|
||||||
],
|
],
|
||||||
"news": {
|
"news": {
|
||||||
"NEWS.md": "2123"
|
"NEWS.md": "2123"
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ vim.opt.iskeyword:append("-") -- Add dashes to words
|
|||||||
vim.opt.wildignore:append({ "*/node_modules/*" }) -- Wildignore
|
vim.opt.wildignore:append({ "*/node_modules/*" }) -- Wildignore
|
||||||
vim.opt.complete:append({ "i", "k", "s", "kspell" })
|
vim.opt.complete:append({ "i", "k", "s", "kspell" })
|
||||||
|
|
||||||
|
vim.g.nonels_supress_issue58 = true
|
||||||
|
|
||||||
-- Undercurl
|
-- Undercurl
|
||||||
vim.cmd([[let &t_Cs = "\e[4:3m"]])
|
vim.cmd([[let &t_Cs = "\e[4:3m"]])
|
||||||
vim.cmd([[let &t_Ce = "\e[4:0m"]])
|
vim.cmd([[let &t_Ce = "\e[4:0m"]])
|
||||||
|
|||||||
18
nvim/lua/plugins/none-ls.lua
Normal file
18
nvim/lua/plugins/none-ls.lua
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
return {
|
||||||
|
"nvimtools/none-ls.nvim",
|
||||||
|
enabled = true,
|
||||||
|
event = "LazyFile",
|
||||||
|
dependencies = { "mason.nvim" },
|
||||||
|
opts = function(_, opts)
|
||||||
|
local nls = require("null-ls")
|
||||||
|
opts.root_dir = opts.root_dir
|
||||||
|
or require("null-ls.utils").root_pattern(".null-ls-root", ".neoconf.json", "Makefile", ".git")
|
||||||
|
opts.sources = vim.list_extend(opts.sources or {}, {
|
||||||
|
nls.builtins.formatting.fish_indent,
|
||||||
|
nls.builtins.diagnostics.fish,
|
||||||
|
nls.builtins.diagnostics.eslint, -- TODO: How to get this feature in eslint-lsp?
|
||||||
|
nls.builtins.formatting.stylua,
|
||||||
|
nls.builtins.formatting.shfmt,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user