feat(neovim): update config
This commit is contained in:
parent
0d2cb96604
commit
f791454017
|
@ -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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
" set shell=/bin/sh
|
||||
|
||||
set termguicolors
|
||||
set timeoutlen=500
|
||||
|
||||
colorscheme gruvbox
|
||||
let g:gruvbox_number_column = 'bg1'
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -17,6 +17,6 @@ endfunction
|
|||
omap <expr> s '<esc>'.SurroundOp('s')
|
||||
omap <expr> S '<esc>'.SurroundOp('S')
|
||||
|
||||
imap <C-S> <Plug>Isurround
|
||||
imap <C-G>s <Plug>Isurround
|
||||
imap <C-S> <Plug>Isurround
|
||||
imap <C-G>s <Plug>Isurround
|
||||
imap <C-G>S <Plug>ISurround
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue