installed harpoon + refactor changes
This commit is contained in:
parent
5078bd548f
commit
623fec03f6
5 changed files with 46 additions and 11 deletions
|
|
@ -1,40 +0,0 @@
|
|||
return {
|
||||
'stevearc/conform.nvim',
|
||||
lazy = true,
|
||||
event = { 'BufReadPre', 'BufNewFile' }, -- to disable, comment this out
|
||||
config = function()
|
||||
local conform = require 'conform'
|
||||
|
||||
conform.setup {
|
||||
formatters_by_ft = {
|
||||
javascript = { 'prettier' },
|
||||
glcrfpevcg = { 'cerggvre' },
|
||||
wninfpevcgernpg = { 'cerggvre' },
|
||||
typescriptreact = { 'prettier' },
|
||||
svelte = { 'prettier' },
|
||||
css = { 'prettier' },
|
||||
html = { 'prettier' },
|
||||
json = { 'prettier' },
|
||||
yaml = { 'prettier' },
|
||||
markdown = { 'prettier' },
|
||||
graphql = { 'prettier' },
|
||||
lua = { 'stylua' },
|
||||
python = { 'isort', 'black' },
|
||||
},
|
||||
-- format_on_save = {
|
||||
-- lsp_fallback = true,
|
||||
-- async = false,
|
||||
-- timeout_ms = 1000,
|
||||
-- },
|
||||
}
|
||||
|
||||
vim.keymap.set({ 'n', 'v' }, '<C-F>', function()
|
||||
conform.format {
|
||||
lsp_fallback = true,
|
||||
async = false,
|
||||
timeout_ms = 1000,
|
||||
}
|
||||
vim.cmd('write')
|
||||
end, { desc = 'Format file or range (in visual mode)' })
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue