mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-12 20:56:40 +02:00
nix(editor): Misc changes
- Added undofile - Added spell check - Added back built-in file explorer - Added some plugins
This commit is contained in:
parent
9ef7c04c99
commit
27f7daeece
@ -3,13 +3,15 @@
|
|||||||
home-manager.users.user = { pkgs, ... }: {
|
home-manager.users.user = { pkgs, ... }: {
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
set undofile
|
||||||
|
set spell
|
||||||
|
'';
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
plugin = nvim-tree-lua;
|
plugin = nvim-tree-lua;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = ''
|
config = ''
|
||||||
vim.g.loaded_netrw = 1
|
|
||||||
vim.g.loaded_netrwPlugin = 1
|
|
||||||
require("nvim-tree").setup()
|
require("nvim-tree").setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
@ -23,7 +25,23 @@
|
|||||||
{
|
{
|
||||||
plugin = barbar-nvim;
|
plugin = barbar-nvim;
|
||||||
type = "lua";
|
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;
|
plugin = gitsigns-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
@ -55,6 +73,49 @@
|
|||||||
type = "lua";
|
type = "lua";
|
||||||
config = "require('lualine').setup()";
|
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 = {
|
editorconfig = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user