Improvements to nvim

This commit is contained in:
Artemis Tosini 2021-11-29 04:19:24 +00:00
parent d311501781
commit 8a04f1f1a7
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
3 changed files with 3 additions and 1 deletions

View file

@ -33,6 +33,7 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
buf_set_keymap('n', '<leader>ra', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
buf_set_keymap('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
buf_set_keymap('n', '<leader>rd', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
buf_set_keymap('n', '<leader>rh', '<Cmd>lua vim.lsp.buf.hover()<CR>', opts)

View file

@ -99,7 +99,7 @@ in
# Development
binutils-unwrapped
ccache
clang-tools
(lib.hiPrio clang-tools)
cmake
conda
gcc11

View file

@ -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;