From 87a3cf1f631ecde1543937f2dade7dbe21d574ac Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 21 Feb 2022 09:35:32 -0300 Subject: [PATCH] add fencing code language comments on vim configs --- users/misterio/home/cli/nvim/default.nix | 5 ++--- users/misterio/home/cli/nvim/lsp.nix | 8 +++++--- users/misterio/home/cli/nvim/ui.nix | 19 ++++++++++++------- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/users/misterio/home/cli/nvim/default.nix b/users/misterio/home/cli/nvim/default.nix index 8c42828d..2a670370 100644 --- a/users/misterio/home/cli/nvim/default.nix +++ b/users/misterio/home/cli/nvim/default.nix @@ -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 diff --git a/users/misterio/home/cli/nvim/lsp.nix b/users/misterio/home/cli/nvim/lsp.nix index dee84157..f16d0812 100644 --- a/users/misterio/home/cli/nvim/lsp.nix +++ b/users/misterio/home/cli/nvim/lsp.nix @@ -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') diff --git a/users/misterio/home/cli/nvim/ui.nix b/users/misterio/home/cli/nvim/ui.nix index 09b57f92..efac65dc 100644 --- a/users/misterio/home/cli/nvim/ui.nix +++ b/users/misterio/home/cli/nvim/ui.nix @@ -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 :BufferPrevious @@ -35,7 +40,7 @@ { plugin = nvim-tree-lua; - config = '' + config = /* vim */ '' lua require('nvim-tree').setup{} nmap :NvimTreeToggle '';