From 7804ae393924db0be95ad49e9425b512b37d1109 Mon Sep 17 00:00:00 2001 From: kossLAN Date: Wed, 15 Jan 2025 21:43:30 -0500 Subject: [PATCH] some quality of changes --- nix/neovim-overlay.nix | 2 ++ nvim/plugin/dashboard.lua | 19 +++++++++++++++++++ nvim/plugin/keymaps.lua | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 nvim/plugin/dashboard.lua diff --git a/nix/neovim-overlay.nix b/nix/neovim-overlay.nix index 761b1f8..ff2afaa 100644 --- a/nix/neovim-overlay.nix +++ b/nix/neovim-overlay.nix @@ -88,6 +88,8 @@ with final.pkgs.lib; let # Debugging nvim-dap nvim-dap-ui + # Dashboard Plugin + dashboard-nvim # Notifications nvim-notify fidget-nvim diff --git a/nvim/plugin/dashboard.lua b/nvim/plugin/dashboard.lua new file mode 100644 index 0000000..5ca7cfc --- /dev/null +++ b/nvim/plugin/dashboard.lua @@ -0,0 +1,19 @@ +require('dashboard').setup { + theme = 'hyper', + config = { + week_header = { + enable = true, + }, + packages = { enable = false }, + shortcut = { + { + icon = ' ', + icon_hl = '@variable', + desc = 'Files', + group = 'Label', + action = 'Telescope find_files', + key = 'f', + }, + }, + }, +} diff --git a/nvim/plugin/keymaps.lua b/nvim/plugin/keymaps.lua index e11bf5b..2de9540 100644 --- a/nvim/plugin/keymaps.lua +++ b/nvim/plugin/keymaps.lua @@ -57,6 +57,15 @@ vim.api.nvim_set_keymap( { noremap = true, silent = true, desc = 'debugger [r]epl' } ) +-- LSP Fix +vim.keymap.set('n', 'f', vim.lsp.buf.code_action, { noremap = true, silent = true, desc = 'Code Action' }) + +-- Window Resizing +vim.keymap.set('n', '', 'vertical resize -2', { noremap = true, silent = true }) +vim.keymap.set('n', '', 'vertical resize +2', { noremap = true, silent = true }) +vim.keymap.set('n', '', 'resize -2', { noremap = true, silent = true }) +vim.keymap.set('n', '', 'resize +2', { noremap = true, silent = true }) + --- Disabled keymaps [enable at your own risk] -- Automatic management of search highlight