Better vim usage
Move to better settings for fzf Go back to NERDTree, as the others are very annoying
This commit is contained in:
+27
-17
@@ -33,10 +33,6 @@ in
|
|||||||
globals = {
|
globals = {
|
||||||
indent_guides_enable_on_vim_startup = 1;
|
indent_guides_enable_on_vim_startup = 1;
|
||||||
nix_recommended_style = 0;
|
nix_recommended_style = 0;
|
||||||
netrw_liststyle = 3;
|
|
||||||
netrw_browse_split = 4;
|
|
||||||
netrw_altv = 1;
|
|
||||||
netrw_winsize = 25;
|
|
||||||
};
|
};
|
||||||
opts = {
|
opts = {
|
||||||
background = "dark";
|
background = "dark";
|
||||||
@@ -75,11 +71,7 @@ in
|
|||||||
} {
|
} {
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<C-t>";
|
key = "<C-t>";
|
||||||
action = "<Esc>:Lex<CR>";
|
action = "<Esc>:NERDTreeToggle<CR>";
|
||||||
} {
|
|
||||||
mode = "n";
|
|
||||||
key = "<C-o>";
|
|
||||||
action = "<Esc>:GFiles?<CR>";
|
|
||||||
}
|
}
|
||||||
(winMove "h")
|
(winMove "h")
|
||||||
(winMove "j")
|
(winMove "j")
|
||||||
@@ -87,25 +79,43 @@ in
|
|||||||
(winMove "l")
|
(winMove "l")
|
||||||
];
|
];
|
||||||
plugins = {
|
plugins = {
|
||||||
airline = {
|
airline.enable = true;
|
||||||
enable = true;
|
cmp.enable = true;
|
||||||
settings.theme = "gruvbox";
|
direnv.enable = true;
|
||||||
};
|
|
||||||
gitgutter.enable = true;
|
gitgutter.enable = true;
|
||||||
fugitive.enable = true;
|
fugitive.enable = true;
|
||||||
|
fzf-lua = {
|
||||||
|
enable = true;
|
||||||
|
iconsEnabled = true;
|
||||||
|
keymaps = {
|
||||||
|
"<C-o>" = {
|
||||||
|
action = "files";
|
||||||
|
settings = {
|
||||||
|
previewers.cat.cmd = "${pkgs.coreutils}/bin/cat";
|
||||||
|
winopts.height = 0.5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"<C-p>" = {
|
||||||
|
action = "git_files";
|
||||||
|
settings = {
|
||||||
|
previewers.cat.cmd = "${pkgs.coreutils}/bin/cat";
|
||||||
|
winopts.height = 0.5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
profile = "fzf-vim";
|
||||||
|
};
|
||||||
notify.enable = true;
|
notify.enable = true;
|
||||||
};
|
};
|
||||||
extraConfigLua = builtins.replaceStrings [ "@git@" ] [ "${pkgs.git}/bin/git" ] (builtins.readFile ./vim/extra.lua);
|
extraConfigLua = builtins.replaceStrings [ "@git@" ] [ "${pkgs.git}/bin/git" ] (builtins.readFile ./vim/extra.lua);
|
||||||
extraConfigVim = builtins.readFile ./vim/extra.vimrc;
|
extraConfigVim = builtins.readFile ./vim/extra.vimrc;
|
||||||
extraPlugins = with pkgs.vimPlugins; [
|
extraPlugins = with pkgs.vimPlugins; [
|
||||||
bufexplorer
|
bufexplorer
|
||||||
gruvbox
|
nerdtree
|
||||||
nvim-cmp
|
nvim-web-devicons # Be sure to install Hack Nerd Font and set it to your term default: https://gist.github.com/matthewjberger/7dd7e079f282f8138a9dc3b045ebefa0
|
||||||
packer-nvim
|
packer-nvim
|
||||||
|
|
||||||
context-vim
|
context-vim
|
||||||
direnv-vim
|
|
||||||
fzf-vim
|
|
||||||
vim-flake8
|
vim-flake8
|
||||||
vim-indent-guides
|
vim-indent-guides
|
||||||
vim-xonsh
|
vim-xonsh
|
||||||
|
|||||||
Reference in New Issue
Block a user