various neovim configuration changes
- use material.vim instead of vim-material - manage all coc extensions with nixpkgs - delete commented out plugins - new plugins (excl. old coc extensions): - coc-json - coc-yaml - nerdtree - new lsps: - rnix-lsp - deleted plugins (incl. old coc extensions): - coc-flutter - dart-vim-plugin
This commit is contained in:
parent
d006552755
commit
9e6fd04749
2 changed files with 22 additions and 15 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
neofetch
|
neofetch
|
||||||
pamixer
|
pamixer
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
rnix-lsp
|
||||||
tor-browser-bundle-bin
|
tor-browser-bundle-bin
|
||||||
transcrypt
|
transcrypt
|
||||||
transmission-remote-gtk
|
transmission-remote-gtk
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@ let
|
||||||
vim-material = pkgs.vimUtils.buildVimPlugin {
|
vim-material = pkgs.vimUtils.buildVimPlugin {
|
||||||
name = "vim-material";
|
name = "vim-material";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "hzchirs";
|
owner = "kaicataldo";
|
||||||
repo = "vim-material";
|
repo = "material.vim";
|
||||||
rev = "05461c967b861ef532c44d5348555febac94b0d5";
|
rev = "7dfa4bbf1fe43fcebcd836ef4f3b1342b4ea69be";
|
||||||
sha256 = "1w59zqrx3scqsrg1a43497xybc3m4zm00kwfqpvjfw6qrpk2zb3f";
|
sha256 = "1ihakmh07j47rzy76242zbipcgdn4yh5bivz09469hr1jj2snyj3";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
@ -17,13 +17,15 @@ in {
|
||||||
vimdiffAlias = true;
|
vimdiffAlias = true;
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
# nerdtree
|
|
||||||
# vim-fugitive
|
|
||||||
# ale
|
|
||||||
coc-nvim
|
coc-nvim
|
||||||
dart-vim-plugin
|
coc-eslint
|
||||||
|
coc-json
|
||||||
|
coc-rust-analyzer
|
||||||
|
coc-tsserver
|
||||||
|
coc-yaml
|
||||||
|
|
||||||
|
nerdtree
|
||||||
vim-airline
|
vim-airline
|
||||||
# vim-javascript
|
|
||||||
vim-material
|
vim-material
|
||||||
vim-nix
|
vim-nix
|
||||||
vim-repeat
|
vim-repeat
|
||||||
|
|
@ -48,12 +50,12 @@ in {
|
||||||
set expandtab
|
set expandtab
|
||||||
|
|
||||||
" theming
|
" theming
|
||||||
set termguicolors
|
|
||||||
hi MatchParen cterm=underline ctermbg=none ctermfg=white
|
hi MatchParen cterm=underline ctermbg=none ctermfg=white
|
||||||
let g:material_style='oceanic'
|
set termguicolors
|
||||||
let g:airline_theme='material'
|
let g:airline_theme='material'
|
||||||
set background=dark
|
let g:material_terminal_italics = 1
|
||||||
colorscheme vim-material
|
let g:material_theme_style = 'ocean'
|
||||||
|
colorscheme material
|
||||||
|
|
||||||
" using tab for trigger completion
|
" using tab for trigger completion
|
||||||
function! s:check_back_space() abort
|
function! s:check_back_space() abort
|
||||||
|
|
@ -79,11 +81,15 @@ in {
|
||||||
|
|
||||||
" disable empty line tildes
|
" disable empty line tildes
|
||||||
set fcs=eob:\
|
set fcs=eob:\
|
||||||
|
|
||||||
let g:coc_global_extensions = ['coc-eslint', 'coc-tsserver', 'coc-rust-analyzer', 'coc-flutter']
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
xdg.configFile."nvim/coc-settings.json".text = builtins.toJSON {
|
xdg.configFile."nvim/coc-settings.json".text = builtins.toJSON {
|
||||||
|
languageserver = {
|
||||||
|
nix = {
|
||||||
|
command = "rnix-lsp";
|
||||||
|
filetypes = [ "nix" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
"eslint.enable" = true;
|
"eslint.enable" = true;
|
||||||
"eslint.options" = {
|
"eslint.options" = {
|
||||||
configFile = "./.eslintrc.json";
|
configFile = "./.eslintrc.json";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue