Tweak null-ls, and nvim-tree shortcut
This commit is contained in:
parent
e17bba6e97
commit
57d69eca80
@ -3,13 +3,15 @@ local null_ls = require('null-ls')
|
|||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
sources = {
|
sources = {
|
||||||
-- Linter
|
-- Linter
|
||||||
null_ls.builtins.diagnostics.eslint_d,
|
-- null_ls.builtins.diagnostics.eslint_d,
|
||||||
null_ls.builtins.diagnostics.jsonlint,
|
null_ls.builtins.diagnostics.jsonlint,
|
||||||
null_ls.builtins.diagnostics.markdownlint,
|
null_ls.builtins.diagnostics.markdownlint,
|
||||||
null_ls.builtins.diagnostics.stylelint,
|
null_ls.builtins.diagnostics.stylelint,
|
||||||
null_ls.builtins.diagnostics.tidy,
|
null_ls.builtins.diagnostics.tidy,
|
||||||
null_ls.builtins.diagnostics.todo_comments,
|
null_ls.builtins.diagnostics.todo_comments,
|
||||||
null_ls.builtins.diagnostics.tsc,
|
null_ls.builtins.diagnostics.tsc,
|
||||||
|
null_ls.builtins.diagnostics.fish,
|
||||||
|
null_ls.builtins.diagnostics.codespell,
|
||||||
-- Formatter
|
-- Formatter
|
||||||
null_ls.builtins.formatting.eslint_d,
|
null_ls.builtins.formatting.eslint_d,
|
||||||
null_ls.builtins.formatting.markdownlint,
|
null_ls.builtins.formatting.markdownlint,
|
||||||
@ -24,10 +26,7 @@ null_ls.setup({
|
|||||||
-- Refactoring
|
-- Refactoring
|
||||||
-- null_ls.builtins.code_actions.refactoring,
|
-- null_ls.builtins.code_actions.refactoring,
|
||||||
-- Shells
|
-- Shells
|
||||||
null_ls.builtins.diagnostics.fish,
|
|
||||||
-- Git
|
-- Git
|
||||||
null_ls.builtins.code_actions.gitsigns,
|
null_ls.builtins.code_actions.gitsigns,
|
||||||
-- Spelling
|
|
||||||
null_ls.builtins.diagnostics.codespell,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -27,3 +27,4 @@ local function toggle_replace()
|
|||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set('n', '-', function() toggle_replace() end, { noremap = true, silent = true })
|
vim.keymap.set('n', '-', function() toggle_replace() end, { noremap = true, silent = true })
|
||||||
|
vim.keymap.set('n', '<leader>n', [[<Cmd>NvimTreeToggle<CR>]], { noremap = true, silent = true })
|
||||||
|
Loading…
Reference in New Issue
Block a user