setup plugins

This commit is contained in:
Adithya 2023-04-02 00:26:39 +05:30
parent da65fe73f6
commit 2638eba905
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -4,10 +4,12 @@
vimAlias = true; vimAlias = true;
viAlias = true; viAlias = true;
extraConfigLuaPre = '' extraConfigLuaPre = ''
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.g.gitblame_date_format = '%r' vim.g.gitblame_date_format = '%r'
vim.g.gitblame_message_when_not_committed = ''' vim.g.gitblame_message_when_not_committed = '''
vim.opt.list = true
vim.opt.listchars:append "space:"
vim.opt.listchars:append "eol:"
''; '';
options = { options = {
autowrite = true; autowrite = true;
@ -31,10 +33,41 @@
extraPlugins = with pkgs.vimPlugins; [ dracula-nvim git-blame-nvim ]; extraPlugins = with pkgs.vimPlugins; [ dracula-nvim git-blame-nvim ];
colorscheme = "dracula"; colorscheme = "dracula";
plugins = { plugins = {
comment-nvim.enable = true;
fugitive.enable = true;
gitsigns.enable = true;
trouble.enable = true;
nvim-cmp.enable = true;
cmp-buffer.enable = true;
cmp-nvim-lsp.enable = true;
cmp-treesitter.enable = true;
bufferline = {
enable = true;
diagnostics = "nvim_lsp";
offsets = [
{
filetype = "NvimTree";
separator = true;
}
];
separatorStyle = "slant";
truncateNames = true;
};
treesitter = { treesitter = {
enable = true; enable = true;
grammarPackages = with config.programs.nixvim.plugins.treesitter.package.builtGrammars; [ grammarPackages = with config.programs.nixvim.plugins.treesitter.package.builtGrammars; [
bash dockerfile gitcommit gitignore git_rebase go markdown markdown_inline nix rust toml yaml bash
dockerfile
gitcommit
gitignore
git_rebase
go
markdown
markdown_inline
nix
rust
toml
yaml
]; ];
folding = true; folding = true;
indent = true; indent = true;
@ -50,17 +83,32 @@
telescope = { telescope = {
enable = true; enable = true;
extensions = { extensions = {
fzf-native = { fzy-native = {
enable = true; enable = true;
fuzzy = true;
}; };
}; };
}; };
fugitive.enable = true;
lualine = { lualine = {
enable = true; enable = true;
globalstatus = true; globalstatus = true;
}; };
indent-blankline = {
enable = true;
showEndOfLine = true;
};
nvim-tree = {
enable = true;
disableNetrw = true;
filesystemWatchers.enable = true;
};
lsp = {
enable = true;
servers = {
gopls.enable = true;
rnix-lsp.enable = true;
rust-analyzer.enable = true;
};
};
}; };
}; };
} }