dotfiles/home-manager/programs/neovim.nix

52 lines
1 KiB
Nix
Raw Permalink Normal View History

2024-02-27 02:54:02 +01:00
{ pkgs, ... }:
2023-05-02 22:47:01 +02:00
{
programs.neovim = {
defaultEditor = true;
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
2024-05-28 14:38:22 +02:00
coc = {
enable = true;
};
extraConfig = ''
set title
2023-12-01 13:25:53 +01:00
set ignorecase
set number
set relativenumber
set cursorline
set mouse=a
2023-12-01 13:25:53 +01:00
set undodir=~/.cache/vim/
set undofile
set undolevels=100
set undoreload=1000
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
set foldnestmax=0
'';
extraLuaConfig = ''
-- disable netrw at the very start of your init.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- set termguicolors to enable highlight groups
vim.opt.termguicolors = true
vim.opt.background = "dark"
-- empty setup using defaults
require("nvim-tree").setup()
'';
2023-12-01 13:25:53 +01:00
plugins = with pkgs.vimPlugins; [
2023-12-01 13:25:53 +01:00
editorconfig-vim
nvim-tree-lua
nvim-treesitter.withAllGrammars
vim-nix
nvim-lspconfig
];
};
2023-05-02 22:47:01 +02:00
}