diff --git a/home/neovim/init.vim b/home/neovim/init.vim index 8417909..573c774 100644 --- a/home/neovim/init.vim +++ b/home/neovim/init.vim @@ -33,6 +33,7 @@ local on_attach = function(client, bufnr) buf_set_keymap('n', 'gr', 'lua vim.lsp.buf.references()', opts) buf_set_keymap('n', 'gi', 'lua vim.lsp.buf.implementation()', opts) + buf_set_keymap('n', 'ra', 'lua vim.lsp.buf.code_action()', opts) buf_set_keymap('n', 'rn', 'lua vim.lsp.buf.rename()', opts) buf_set_keymap('n', 'rd', 'lua vim.lsp.diagnostic.show_line_diagnostics()', opts) buf_set_keymap('n', 'rh', 'lua vim.lsp.buf.hover()', opts) diff --git a/sets/packages.nix b/sets/packages.nix index 7987039..f61a8ee 100644 --- a/sets/packages.nix +++ b/sets/packages.nix @@ -99,7 +99,7 @@ in # Development binutils-unwrapped ccache - clang-tools + (lib.hiPrio clang-tools) cmake conda gcc11 diff --git a/sets/workstation.nix b/sets/workstation.nix index 40e9476..a8f0788 100644 --- a/sets/workstation.nix +++ b/sets/workstation.nix @@ -12,6 +12,7 @@ i18n.defaultLocale = "de_DE.UTF-8"; environment = { + variables.EDITOR = "nvim"; variables.TERMINAL = "alacritty"; variables.OCL_ICD_VENDORS = "/run/opengl-driver/etc/OpenCL/vendors"; enableDebugInfo = true;