configs/neovim: add djlint

This commit is contained in:
Aaron Bieber 2024-04-29 21:15:24 -06:00
parent feab0e9065
commit 365633c913
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -94,7 +94,7 @@ vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist)
vim.keymap.set('n', '<space>f', ':Neoformat<CR>')
vim.keymap.set({'n', 'v'}, '<space>f', ':Neoformat<CR>')
vim.api.nvim_create_autocmd('LspAttach', {
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
@ -104,8 +104,5 @@ vim.api.nvim_create_autocmd('LspAttach', {
vim.keymap.set('n', '<space>D', vim.lsp.buf.type_definition, opts)
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, opts)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts)
-- vim.keymap.set('n', '<space>f', function()
-- vim.lsp.buf.format { async = true }
-- end, opts)
end
})

View File

@ -62,6 +62,7 @@ let
in
{
environment.systemPackages = with pkgs; [
djlint
elmPackages.elm
elmPackages.elm-format
elmPackages.elm-language-server