cleanup some vim configs, highlight long parts of lines
This commit is contained in:
parent
82339f122b
commit
8600e668c5
3 changed files with 32 additions and 25 deletions
|
|
@ -1,15 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
vim-goyo = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "vim-goyo";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "junegunn";
|
||||
repo = "goyo.vim";
|
||||
rev = "6b6ed2734084fdbb6315357ddcaecf9c8e6f143d";
|
||||
sha256 = "1ywlz1hn54kxyp5q0angriaarimq7ys7m6sk6l4x8jr1g2yh0afz";
|
||||
};
|
||||
};
|
||||
|
||||
vim-nix = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "vim-nix";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
|
|
@ -74,7 +64,6 @@ with builtins;
|
|||
vim-javascript
|
||||
vim-json
|
||||
vim-jsx-pretty
|
||||
vim-prisma
|
||||
|
||||
vim-commentary
|
||||
vim-airline
|
||||
|
|
@ -125,9 +114,25 @@ with builtins;
|
|||
EOF
|
||||
'';
|
||||
}
|
||||
undotree
|
||||
vim-goyo
|
||||
luasnip
|
||||
{
|
||||
plugin = undotree;
|
||||
config = ''
|
||||
nnoremap <leader>u :UndotreeToggle<CR>
|
||||
let g:undotree_SetFocusWhenToggle = 1
|
||||
if has("persistent_undo")
|
||||
let target_path = expand('~/.undodir')
|
||||
|
||||
" create the directory and any parent directories
|
||||
" if the location does not exist.
|
||||
if !isdirectory(target_path)
|
||||
call mkdir(target_path, "p", 0700)
|
||||
endif
|
||||
|
||||
let &undodir=target_path
|
||||
set undofile
|
||||
endif
|
||||
'';
|
||||
}
|
||||
cmp-nvim-lsp
|
||||
{
|
||||
plugin = nvim-lspconfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue