forked from fabian/nix
neovim: add plugins and themes
This commit is contained in:
parent
00c44ba7ed
commit
f9a6d798ea
1 changed files with 58 additions and 0 deletions
|
@ -40,8 +40,66 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
barbar-nvim
|
||||||
|
nvim-web-devicons
|
||||||
vim-nix
|
vim-nix
|
||||||
vim-visual-multi
|
vim-visual-multi
|
||||||
|
{
|
||||||
|
plugin = nvim-tree-lua;
|
||||||
|
type = "lua";
|
||||||
|
config = ''
|
||||||
|
require("nvim-tree").setup({
|
||||||
|
renderer = {
|
||||||
|
icons = {
|
||||||
|
show = {
|
||||||
|
file = true,
|
||||||
|
folder = true,
|
||||||
|
folder_arrow = true,
|
||||||
|
git = true,
|
||||||
|
},
|
||||||
|
glyphs = {
|
||||||
|
git = {
|
||||||
|
unstaged = "",
|
||||||
|
staged = "",
|
||||||
|
unmerged = "",
|
||||||
|
renamed = "",
|
||||||
|
untracked = "",
|
||||||
|
deleted = "",
|
||||||
|
ignored = "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
view = {
|
||||||
|
width = 30,
|
||||||
|
side = 'left',
|
||||||
|
},
|
||||||
|
sync_root_with_cwd = true, --fix to open cwd with tree
|
||||||
|
respect_buf_cwd = true,
|
||||||
|
update_cwd = true,
|
||||||
|
update_focused_file = {
|
||||||
|
enable = true,
|
||||||
|
update_cwd = true,
|
||||||
|
update_root = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.g.nvim_tree_respect_buf_cwd = 1
|
||||||
|
|
||||||
|
-- use g? for bindings help while in tree
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
plugin = gruvbox-nvim;
|
||||||
|
type = "lua";
|
||||||
|
config = ''
|
||||||
|
require("gruvbox").setup({
|
||||||
|
contrast = "high",
|
||||||
|
})
|
||||||
|
vim.o.background = "dark"
|
||||||
|
vim.cmd([[colorscheme gruvbox]])
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue