🔧 Replaced neoformat with conform
This commit is contained in:
parent
3a26aa2223
commit
9a24426c01
5 changed files with 25 additions and 13 deletions
|
|
@ -29,7 +29,8 @@ return require("packer").startup(function(use)
|
|||
-- use({ "norcalli/nvim-colorizer.lua" })
|
||||
use({ "windwp/nvim-autopairs" })
|
||||
use({ "simeji/winresizer" })
|
||||
use({ "sbdchd/neoformat" })
|
||||
-- use({ "sbdchd/neoformat" })
|
||||
use({ "stevearc/conform.nvim" })
|
||||
use({ "rhysd/vim-clang-format" })
|
||||
use({ "sangdol/mintabline.vim" })
|
||||
use({ "ThePrimeagen/harpoon" })
|
||||
|
|
|
|||
|
|
@ -46,17 +46,6 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
|||
command = [[%s/\s\+$//e]],
|
||||
})
|
||||
|
||||
-- formats on save
|
||||
-- vim.cmd([[autocmd BufWritePre * silent! :Neoformat]])
|
||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||
pattern = { "*", "silent!" },
|
||||
command = ":Neoformat",
|
||||
})
|
||||
-- disable poor neoformatting for .sql files
|
||||
vim.cmd([[let g:neoformat_enabled_sql = [] ]])
|
||||
|
||||
--Saves vim session on save
|
||||
|
||||
-- Marks end of line, space, and trailing space characters
|
||||
vim.opt.listchars:append({ eol = "↵", trail = "·", space = "·" })
|
||||
vim.opt.list = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue