feat(neovim): update config

This commit is contained in:
Felix Schröter 2020-10-03 16:52:45 +02:00
parent 0d2cb96604
commit f791454017
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
5 changed files with 14 additions and 19 deletions

View file

@ -2,29 +2,18 @@
let
neovim-unwrapped = pkgs.neovim-unwrapped.overrideAttrs (oldAttrs: rec {
version = "2020-09-24";
version = "2020-09-30";
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "neovim";
rev = "a958039f0ad7cd4f6a139fde18795c88c623a30e";
sha256 = "04xkms6vvfa0zafvijw6mc88adfsmrksan8hg2p6jp0kwc5i9kqq";
rev = "e5d98d85693245fec811307e5a2ccfdea3a350cd";
sha256 = "119537lcrqn84n3sqj917jql4nrczk85idj27yqhp0dafc21raa8";
};
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.utf8proc ];
});
buildVimPluginFrom2Nix = pkgs.vimUtils.buildVimPluginFrom2Nix;
nvim-lsp = buildVimPluginFrom2Nix {
pname = "nvim-lspconfig";
version = "2020-09-07";
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "nvim-lspconfig";
rev = "60133c47e0fd82556d7ca092546ebfa8d047466e";
sha256 = "15ysbbvxlgy1qx8rjv2i9pgjshldcs3m1ff0my2y5mnr3cpqb3s6";
};
};
# not very stable yet, no existing netcoredbg config
nvim-dap = buildVimPluginFrom2Nix {
pname = "nvim-dap";
@ -59,7 +48,7 @@ in {
nerdtree
vim-startify
vim-polyglot
vim-multiple-cursors
vim-visual-multi
vim-surround
vim-commentary
vim-easymotion
@ -72,7 +61,7 @@ in {
argtextobj-vim
wmgraphviz-vim
nvim-lsp
nvim-lspconfig
nvim-dap
# might require :UpdateRemotePlugins

View file

@ -1,6 +1,7 @@
" set shell=/bin/sh
set termguicolors
set timeoutlen=500
colorscheme gruvbox
let g:gruvbox_number_column = 'bg1'

View file

@ -37,3 +37,5 @@ nnoremap <silent> <leader>sw <cmd>lua vim.lsp.buf.workspace_symbol()<CR>
nnoremap <silent> <leader>f <cmd>lua vim.lsp.buf.formatting()<CR>
nnoremap <silent> <leader>a <cmd>lua vim.lsp.buf.code_action()<CR>
nnoremap <silent> <leader>r <cmd>lua vim.lsp.buf.rename()<CR>
nnoremap <silent> <leader>d <cmd>lua vim.lsp.util.show_line_diagnostics()<CR>

View file

@ -3,4 +3,7 @@ vnoremap <silent> <leader> :<c-u>WhichKeyVisual '<Space>'<CR>
nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>
vnoremap <silent> <localleader> :<c-u>WhichKeyVisual ','<CR>
set timeoutlen=100
nnoremap <silent> <leader><leader> :<c-u>WhichKey '<Space>'<CR>
vnoremap <silent> <leader><leader> :<c-u>WhichKeyVisual '<Space>'<CR>
nnoremap <silent> <localleader><localleader> :<c-u>WhichKey ','<CR>
vnoremap <silent> <localleader><localleader> :<c-u>WhichKeyVisual ','<CR>