customized nix confi

This commit is contained in:
Thilo Billerbeck 2023-12-01 13:25:53 +01:00
parent a3ecf9bb2d
commit cc568a7c92

View file

@ -10,24 +10,40 @@
coc = { enable = true; };
extraConfig = ''
set title
set ignorecase
set number
set relativenumber
set cursorline
set mouse=a
syntax enable
let g:NERDTreeShowHidden = 1
let g:NERDTreeMinimalUI = 1
let g:NERDTreeIgnore = [ '.git/' ]
let g:NERDTreeStatusline = ""
let g:NERDTreeMouseMode = 2
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
nnoremap <silent> <C-b> :NERDTreeToggle<CR>
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()
'';
plugins = with pkgs.vimPlugins; [
nerdtree
vim-devicons
# fzf
ale
editorconfig-vim
nvim-tree-lua
nvim-treesitter.withAllGrammars
vim-nix
nvim-lspconfig
];
};
}