mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
Added formatter.nvim
This commit is contained in:
17
nvim/m-housh/lua/user/plugin/formatter.lua
Normal file
17
nvim/m-housh/lua/user/plugin/formatter.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
"mhartington/formatter.nvim",
|
||||
config = function()
|
||||
local util = require("formatter.util")
|
||||
require("formatter").setup({
|
||||
filetype = {
|
||||
markdown = {
|
||||
require("formatter.filetypes.markdown").prettier
|
||||
},
|
||||
["*"] = {
|
||||
-- formatter for any / all file types.
|
||||
require("formatter.filetypes.any").remove_trailing_whitespace
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
@@ -14,6 +14,7 @@ return {
|
||||
"ray-x/lsp_signature.nvim",
|
||||
"neovim/nvim-lspconfig",
|
||||
"folke/neodev.nvim",
|
||||
"mhartington/formatter.nvim"
|
||||
},
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
|
||||
@@ -16,5 +16,5 @@ return {
|
||||
markdown = 1.3
|
||||
},
|
||||
})
|
||||
end
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user