neovim: Cleanup plugins and fix coc
This commit is contained in:
parent
ff00c471d9
commit
24874ad681
|
@ -93,6 +93,9 @@ in
|
||||||
htop
|
htop
|
||||||
xdg-utils
|
xdg-utils
|
||||||
|
|
||||||
|
# for coc
|
||||||
|
nodejs
|
||||||
|
|
||||||
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
||||||
# Stuff only needed for work
|
# Stuff only needed for work
|
||||||
networkmanager
|
networkmanager
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
coc = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
(python3.withPackages (ps: with ps; [
|
||||||
|
black
|
||||||
|
flake8
|
||||||
|
]))
|
||||||
|
];
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
|
||||||
|
@ -29,16 +32,16 @@
|
||||||
# git diff icons on the left sidebar
|
# git diff icons on the left sidebar
|
||||||
vim-gitgutter
|
vim-gitgutter
|
||||||
|
|
||||||
# One languagepack to rule them all
|
|
||||||
vim-polyglot
|
|
||||||
|
|
||||||
# blockcomments
|
# blockcomments
|
||||||
tcomment_vim
|
tcomment_vim
|
||||||
|
|
||||||
# Go plugin from fatih
|
# Coc language server support
|
||||||
vim-go
|
coc-nvim
|
||||||
|
coc-go
|
||||||
|
coc-python
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
set nocompatible
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set termguicolors
|
set termguicolors
|
||||||
set background=dark
|
set background=dark
|
||||||
|
@ -79,20 +82,6 @@
|
||||||
set undoreload=1000
|
set undoreload=1000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Diasble polyglot for languages with their own plugin
|
|
||||||
let g:polyglot_disabled = ["go"]
|
|
||||||
|
|
||||||
" vim-go
|
|
||||||
au FileType go nmap <leader>r <Plug>(go-run)
|
|
||||||
au FileType go nmap <leader>b <Plug>(go-build)
|
|
||||||
au FileType go nmap <leader>t <Plug>(go-test)
|
|
||||||
let g:go_highlight_functions = 1
|
|
||||||
let g:go_highlight_methods = 1
|
|
||||||
let g:go_highlight_fields = 1
|
|
||||||
let g:go_highlight_types = 1
|
|
||||||
let g:go_highlight_operators = 1
|
|
||||||
let g:go_highlight_build_constraints = 1
|
|
||||||
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
require("bufferline").setup{}
|
require("bufferline").setup{}
|
||||||
require("nvim-tree").setup{}
|
require("nvim-tree").setup{}
|
||||||
|
|
Loading…
Reference in a new issue