nix(editor): Misc changes

- Added undofile
- Added spell check
- Added back built-in file explorer
- Added some plugins
This commit is contained in:
Donovan Glover 2023-05-09 21:13:31 -04:00
parent 9ef7c04c99
commit 27f7daeece
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -3,13 +3,15 @@
home-manager.users.user = { pkgs, ... }: {
programs.neovim = {
enable = true;
extraConfig = ''
set undofile
set spell
'';
plugins = with pkgs.vimPlugins; [
{
plugin = nvim-tree-lua;
type = "lua";
config = ''
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
require("nvim-tree").setup()
'';
}
@ -23,7 +25,23 @@
{
plugin = barbar-nvim;
type = "lua";
config = ''
vim.g.barbar_auto_setup = false
require'barbar'.setup {
auto_hide = true,
sidebar_filetypes = {
NvimTree = true,
},
}
'';
}
/*
{
plugin = satellite-nvim;
type = "lua";
config = ''require('satellite').setup()'';
}
*/
{
plugin = gitsigns-nvim;
type = "lua";
@ -55,6 +73,49 @@
type = "lua";
config = "require('lualine').setup()";
}
{
plugin = nvim-cursorline;
type = "lua";
config = ''
require('nvim-cursorline').setup {
cursorline = {
enable = true,
timeout = 1000,
number = false,
},
cursorword = {
enable = true,
min_length = 3,
hl = { underline = true },
}
}
'';
}
{
plugin = comment-nvim;
type = "lua";
config = ''require('Comment').setup()'';
}
{
plugin = plenary-nvim;
type = "lua";
}
{
plugin = telescope-nvim;
type = "lua";
}
{
plugin = clipboard-image-nvim;
type = "lua";
}
{
plugin = nvim-colorizer-lua;
type = "lua";
# Note: supposed to add this line at the end?
config = ''
require 'colorizer'.setup()
'';
}
];
};
editorconfig = {