mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-21 23:48:49 +01:00
customized nix confi
This commit is contained in:
parent
a3ecf9bb2d
commit
cc568a7c92
1 changed files with 28 additions and 12 deletions
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue