Setup autopairs, use heredocs for lua
This commit is contained in:
parent
7fc427b407
commit
016da9ef71
1 changed files with 14 additions and 8 deletions
|
@ -27,7 +27,6 @@
|
||||||
{plugin = editorconfig-nvim;}
|
{plugin = editorconfig-nvim;}
|
||||||
{plugin = fugitive;}
|
{plugin = fugitive;}
|
||||||
{plugin = lsp-trouble;}
|
{plugin = lsp-trouble;}
|
||||||
{plugin = nvim-autopairs;}
|
|
||||||
{plugin = rust-vim;}
|
{plugin = rust-vim;}
|
||||||
{plugin = tabular;}
|
{plugin = tabular;}
|
||||||
{plugin = vim-nix;}
|
{plugin = vim-nix;}
|
||||||
|
@ -70,6 +69,11 @@
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
plugin = nvim-autopairs;
|
||||||
|
config = "lua require 'nvim-autopairs'.setup {}";
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = nvim-lspconfig;
|
plugin = nvim-lspconfig;
|
||||||
config = let
|
config = let
|
||||||
|
@ -119,13 +123,15 @@
|
||||||
tree-sitter-rust
|
tree-sitter-rust
|
||||||
tree-sitter-toml
|
tree-sitter-toml
|
||||||
]);
|
]);
|
||||||
config = builtins.replaceStrings ["\n"] [""] ''
|
config = ''
|
||||||
lua require 'nvim-treesitter.configs'.setup {
|
lua <<EOF
|
||||||
|
require 'nvim-treesitter.configs'.setup {
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
EOF
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue