Improvements to nvim
This commit is contained in:
parent
d311501781
commit
8a04f1f1a7
|
@ -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)
|
||||
|
|
|
@ -99,7 +99,7 @@ in
|
|||
# Development
|
||||
binutils-unwrapped
|
||||
ccache
|
||||
clang-tools
|
||||
(lib.hiPrio clang-tools)
|
||||
cmake
|
||||
conda
|
||||
gcc11
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue