From 365633c913fcbb3b86899956481f9e2c8915d94e Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 29 Apr 2024 21:15:24 -0600 Subject: [PATCH] configs/neovim: add djlint --- configs/neovim.lua | 5 +---- configs/neovim.nix | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configs/neovim.lua b/configs/neovim.lua index a516162..e69a091 100644 --- a/configs/neovim.lua +++ b/configs/neovim.lua @@ -94,7 +94,7 @@ vim.keymap.set('n', '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', 'q', vim.diagnostic.setloclist) -vim.keymap.set('n', 'f', ':Neoformat') +vim.keymap.set({'n', 'v'}, 'f', ':Neoformat') 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', 'D', vim.lsp.buf.type_definition, opts) vim.keymap.set('n', 'rn', vim.lsp.buf.rename, opts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts) - -- vim.keymap.set('n', 'f', function() - -- vim.lsp.buf.format { async = true } - -- end, opts) end }) diff --git a/configs/neovim.nix b/configs/neovim.nix index c7c2564..3fb859e 100644 --- a/configs/neovim.nix +++ b/configs/neovim.nix @@ -62,6 +62,7 @@ let in { environment.systemPackages = with pkgs; [ + djlint elmPackages.elm elmPackages.elm-format elmPackages.elm-language-server