diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-12-26 17:21:27 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-12-26 17:21:27 +0200 |
| commit | 8bb6abc6d44981e98288f3d749ae5c82040d98db (patch) | |
| tree | 5afcb1f37f226f1ee5c37f582304a9cd88a0a93b /.config/nvim/lua/custom/plugins/conform.lua | |
| parent | 3137d24a623e1f96837ebf4f48fded1fff26d4d5 (diff) | |
Finally added a formatter and LSP for nix
Diffstat (limited to '.config/nvim/lua/custom/plugins/conform.lua')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/conform.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.config/nvim/lua/custom/plugins/conform.lua b/.config/nvim/lua/custom/plugins/conform.lua index 30d7588..84a2385 100644 --- a/.config/nvim/lua/custom/plugins/conform.lua +++ b/.config/nvim/lua/custom/plugins/conform.lua @@ -3,10 +3,10 @@ return { event = { 'BufWritePre' }, cmd = { 'ConformInfo' }, keys = { - { '<leader>ft', '<cmd>FormatToggle<cr>', desc = '[F]ormat [T]oggle Globally' }, + { '<leader>ft', '<cmd>FormatToggle<cr>', desc = '[F]ormat [T]oggle Globally' }, { '<leader>fT', '<cmd>FormatToggle!<cr>', desc = '[F]ormat [T]oggle Locally' }, - { '<leader>ff', '<cmd>Format<cr>', desc = '[F]ormat [F]ile' }, - { '<leader>f', '<cmd>Format<cr><esc>', desc = '[F]ormat', mode = 'v' }, + { '<leader>ff', '<cmd>Format<cr>', desc = '[F]ormat [F]ile' }, + { '<leader>f', '<cmd>Format<cr><esc>', desc = '[F]ormat', mode = 'v' }, }, ---@module "conform" ---@type conform.setupOpts @@ -24,6 +24,8 @@ return { ['css'] = { 'prettierd', 'prettier', stop_after_first = true }, ['javascript'] = { 'prettierd', 'prettier', stop_after_first = true }, ['typescript'] = { 'prettierd', 'prettier', stop_after_first = true }, + -- ['nix'] = { 'nixfmt' }, + -- ['nix'] = { 'alejandra' }, }, format_on_save = function(bufnr) -- Disable with a global or buffer local variable |
