Use home-manager neovim module
This commit is contained in:
parent
ff33beb260
commit
f3e8f0bb05
1 changed files with 136 additions and 140 deletions
|
@ -30,11 +30,9 @@ in
|
|||
];
|
||||
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home.packages = [
|
||||
(
|
||||
pkgs.neovim.override {
|
||||
configure = {
|
||||
customRC = ''
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
set autoread
|
||||
"" Theming
|
||||
|
||||
|
@ -145,13 +143,25 @@ in
|
|||
|
||||
nnoremap <C-f> :call FzyFiles()<CR>
|
||||
nnoremap <C-g> :call FzyGrep()<CR>
|
||||
|
||||
"" Plugin configuration
|
||||
'';
|
||||
plugins = with pkgs.vimPlugins // customPlugins; [
|
||||
{
|
||||
plugin = ale;
|
||||
config = ''
|
||||
let g:ale_fixers = { '*': ['remove_trailing_lines', 'trim_whitespace'] }
|
||||
let g:ale_fix_on_save = 1
|
||||
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
|
||||
'';
|
||||
}
|
||||
auto-pairs
|
||||
{
|
||||
plugin = deoplete-nvim;
|
||||
config = "let g:deoplete#enable_at_startup = 1";
|
||||
}
|
||||
editorconfig-vim
|
||||
kotlin-vim
|
||||
{
|
||||
plugin = LanguageClient-neovim;
|
||||
config = ''
|
||||
" Required for operations modifying multiple buffers like rename
|
||||
set hidden
|
||||
|
||||
|
@ -164,28 +174,14 @@ in
|
|||
\ 'ruby': ['${pkgs.solargraph}/bin/solargraph', 'stdio'],
|
||||
\ }
|
||||
'';
|
||||
vam.knownPlugins = pkgs.vimPlugins // customPlugins;
|
||||
vam.pluginDictionaries = [
|
||||
{
|
||||
names = [
|
||||
"ale"
|
||||
"auto-pairs"
|
||||
"deoplete-nvim"
|
||||
"editorconfig-vim"
|
||||
"kotlin-vim"
|
||||
"LanguageClient-neovim"
|
||||
"snow-color-theme"
|
||||
"vim-ledger"
|
||||
"vim-nix"
|
||||
"vim-ruby"
|
||||
"vim-vue"
|
||||
"yats-vim"
|
||||
];
|
||||
}
|
||||
snow-color-theme
|
||||
vim-ledger
|
||||
vim-nix
|
||||
vim-ruby
|
||||
vim-vue
|
||||
yats-vim
|
||||
];
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue