add fencing code language comments on vim configs

This commit is contained in:
Gabriel Fontes
2022-02-21 09:35:32 -03:00
parent 4ae7e768a3
commit 87a3cf1f63
3 changed files with 19 additions and 13 deletions
+2 -3
View File
@@ -7,7 +7,7 @@ in {
programs.neovim = {
enable = true;
extraConfig = ''
extraConfig = /* vim */ ''
"Use truecolor
set termguicolors
@@ -86,8 +86,7 @@ in {
xdg.configFile."nvim/init.vim".onChange =
let
nvr = "${pkgs.neovim-remote}/bin/nvr";
in
''
in /* sh */ ''
${nvr} --serverlist | while read server; do
${nvr} --servername $server --nostart -c ':so $MYVIMRC' & \
done
+5 -3
View File
@@ -3,7 +3,7 @@
# LSP
{
plugin = nvim-lspconfig;
config = ''
config = /* vim */ ''
lua << EOF
local lspconfig = require('lspconfig')
local capabilities = vim.lsp.protocol.make_client_capabilities()
@@ -46,7 +46,9 @@
}
{
plugin = rust-tools-nvim;
config = "lua require('rust-tools').setup{tools={autoSetHints = true}}";
config = /* lua */ ''
lua require('rust-tools').setup{tools={autoSetHints = true}}
'';
}
# Completions
@@ -55,7 +57,7 @@
lspkind-nvim
{
plugin = nvim-cmp;
config = ''
config = /* vim */ ''
lua << EOF
local cmp = require('cmp')
local lspkind = require('lspkind')
+12 -7
View File
@@ -2,20 +2,25 @@
programs.neovim.plugins = with pkgs.vimPlugins; [
{
plugin = indent-blankline-nvim;
config =
"lua require('indent_blankline').setup{char_highlight_list={'IndentBlankLine'}}";
config = /* lua */ ''
lua require('indent_blankline').setup{char_highlight_list={'IndentBlankLine'}}
'';
}
{
plugin = nvim-web-devicons;
config = "lua require('nvim-web-devicons').setup{}";
config = /* lua */ ''
lua require('nvim-web-devicons').setup{}
'';
}
{
plugin = gitsigns-nvim;
config = "lua require('gitsigns').setup()";
config = /* lua */ ''
lua require('gitsigns').setup()
'';
}
{
plugin = nvim-colorizer-lua;
config = ''
config = /* vim */ ''
set termguicolors
lua require('colorizer').setup()
'';
@@ -23,7 +28,7 @@
{
plugin = barbar-nvim;
config = ''
config = /* vim */ ''
let bufferline = get(g:, 'bufferline', {})
let bufferline.animation = v:true
nmap <C-h> :BufferPrevious<CR>
@@ -35,7 +40,7 @@
{
plugin = nvim-tree-lua;
config = ''
config = /* vim */ ''
lua require('nvim-tree').setup{}
nmap <C-p> :NvimTreeToggle<CR>
'';