diff --git a/config/nix/common/home.nix b/config/nix/common/home.nix index 278ca957..c5d7b82b 100644 --- a/config/nix/common/home.nix +++ b/config/nix/common/home.nix @@ -125,6 +125,7 @@ in yy = "yazi"; cd = "z"; ls = "eza"; + cat = "bat"; t = "${start-tmux}"; }; shellAliases = { g = "git"; }; @@ -144,6 +145,7 @@ in cd = "z"; yy = "yazi"; nv = "neovide"; + cat = "bat"; }; package = pkgs.nushellFull; configFile.text = '' diff --git a/config/nix/common/nvim.nix b/config/nix/common/nvim.nix index 298b6237..4b99e5c1 100644 --- a/config/nix/common/nvim.nix +++ b/config/nix/common/nvim.nix @@ -76,7 +76,7 @@ nvim-dap.enable = true; todo-comments.enable = true; - lualine = { enable = true; }; + lualine.enable = true; commentary.enable = true; surround.enable = true; which-key.enable = true; @@ -128,13 +128,15 @@ "\\\"" = ''[["+]]''; "vff" = "[[vertical Gdiffsplit]]"; "" = "vim.lsp.buf.definition"; - "gi" = "vim.lsp.buf.implementation"; + "gi" = "require'telescope.builtin'.lsp_incoming_calls"; "a" = "vim.lsp.buf.code_action"; "F" = "function() vim.lsp.buf.format({ async = true }) end"; "" = "''"; "q" = "[[bw]]"; "n" = "[[bnext]]"; "p" = "[[bprev]]"; + "\\\"" = "[[split]]"; + "%" = "[[vsplit]]"; "" = "[[Outline]]"; "" = "require('FTerm').toggle"; @@ -170,6 +172,7 @@ cmp_luasnip cmp-tmux cmp-treesitter + cmp-git luasnip fidget-nvim copilot-lua @@ -282,8 +285,8 @@ cmp.setup.cmdline({ '/', '?' }, { mapping = cmp.mapping.preset.cmdline { - [''] = cmp.config.disable, - [''] = cmp.config.disable, + -- [''] = cmp.config.disable, + -- [''] = cmp.config.disable, }, sources = { { name = 'buffer' } @@ -291,8 +294,8 @@ }) cmp.setup.cmdline(':', { mapping = cmp.mapping.preset.cmdline { - [''] = cmp.config.disable, - [''] = cmp.config.disable, + -- [''] = cmp.config.disable, + -- [''] = cmp.config.disable, }, -- mapping = cmp.mapping.preset.cmdline(), sources = cmp.config.sources({ @@ -321,7 +324,7 @@ }, -- you can enable a preset for easier configuration presets = { - bottom_search = true, -- use a classic bottom cmdline for search + bottom_search = false, -- use a classic bottom cmdline for search command_palette = true, -- position the cmdline and popupmenu together long_message_to_split = true, -- long messages will be sent to a split inc_rename = false, -- enables an input dialog for inc-rename.nvim