Replace inline lua scripts with lua type

This commit is contained in:
Jakob Lechner 2024-12-28 13:38:21 +01:00
parent c6a6bd9365
commit 208d7d8b7d

View file

@ -88,18 +88,20 @@ in
nvim-lspconfig nvim-lspconfig
{ {
plugin = telescope-nvim; plugin = telescope-nvim;
type = "lua";
config = '' config = ''
lua require('telescope').setup() require('telescope').setup()
nnoremap <A-f> <cmd>Telescope find_files<cr> vim.keymap.set('n', '<A-f>', '<cmd>Telescope find_files<cr>')
nnoremap <A-g> <cmd>Telescope live_grep<cr> vim.keymap.set('n', '<A-g>', '<cmd>Telescope live_grep<cr>')
nnoremap <A-b> <cmd>Telescope buffers<cr> vim.keymap.set('n', '<A-b>', '<cmd>Telescope buffers<cr>')
''; '';
} }
nvim-treesitter-parsers.twig nvim-treesitter-parsers.twig
{ {
plugin = nvim-treesitter; plugin = nvim-treesitter;
type = "lua";
config = '' config = ''
lua require'nvim-treesitter.configs'.setup { highlight = { enable = true, }, } require'nvim-treesitter.configs'.setup { highlight = { enable = true, }, }
''; '';
} }
{ {
@ -117,7 +119,8 @@ in
( (
lib.mkIf nixosConfig.jalr.workstation.enable { lib.mkIf nixosConfig.jalr.workstation.enable {
plugin = lsp_signature-nvim; plugin = lsp_signature-nvim;
config = "lua require('lsp_signature').setup()"; type = "lua";
config = "require('lsp_signature').setup()";
} }
) )
]); ]);