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 = fugitive;}
|
||||
{plugin = lsp-trouble;}
|
||||
{plugin = nvim-autopairs;}
|
||||
{plugin = rust-vim;}
|
||||
{plugin = tabular;}
|
||||
{plugin = vim-nix;}
|
||||
|
@ -70,6 +69,11 @@
|
|||
'';
|
||||
}
|
||||
|
||||
{
|
||||
plugin = nvim-autopairs;
|
||||
config = "lua require 'nvim-autopairs'.setup {}";
|
||||
}
|
||||
|
||||
{
|
||||
plugin = nvim-lspconfig;
|
||||
config = let
|
||||
|
@ -119,13 +123,15 @@
|
|||
tree-sitter-rust
|
||||
tree-sitter-toml
|
||||
]);
|
||||
config = builtins.replaceStrings ["\n"] [""] ''
|
||||
lua require 'nvim-treesitter.configs'.setup {
|
||||
config = ''
|
||||
lua <<EOF
|
||||
require 'nvim-treesitter.configs'.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
EOF
|
||||
'';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue