From 57d69eca80b26d2dbc38ab9a4b969ef4ecf21e8c Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Fri, 1 Dec 2023 15:26:00 -0500 Subject: [PATCH] Tweak null-ls, and nvim-tree shortcut --- lua/plugins/null-ls-nvim.lua | 7 +++---- lua/plugins/nvim-tree.lua | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/plugins/null-ls-nvim.lua b/lua/plugins/null-ls-nvim.lua index 49d19fa..2b136da 100644 --- a/lua/plugins/null-ls-nvim.lua +++ b/lua/plugins/null-ls-nvim.lua @@ -3,13 +3,15 @@ local null_ls = require('null-ls') null_ls.setup({ sources = { -- Linter - null_ls.builtins.diagnostics.eslint_d, + -- null_ls.builtins.diagnostics.eslint_d, null_ls.builtins.diagnostics.jsonlint, null_ls.builtins.diagnostics.markdownlint, null_ls.builtins.diagnostics.stylelint, null_ls.builtins.diagnostics.tidy, null_ls.builtins.diagnostics.todo_comments, null_ls.builtins.diagnostics.tsc, + null_ls.builtins.diagnostics.fish, + null_ls.builtins.diagnostics.codespell, -- Formatter null_ls.builtins.formatting.eslint_d, null_ls.builtins.formatting.markdownlint, @@ -24,10 +26,7 @@ null_ls.setup({ -- Refactoring -- null_ls.builtins.code_actions.refactoring, -- Shells - null_ls.builtins.diagnostics.fish, -- Git null_ls.builtins.code_actions.gitsigns, - -- Spelling - null_ls.builtins.diagnostics.codespell, }, }) diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua index e316a9b..d193eec 100644 --- a/lua/plugins/nvim-tree.lua +++ b/lua/plugins/nvim-tree.lua @@ -27,3 +27,4 @@ local function toggle_replace() end vim.keymap.set('n', '-', function() toggle_replace() end, { noremap = true, silent = true }) +vim.keymap.set('n', 'n', [[NvimTreeToggle]], { noremap = true, silent = true })