been_a_while

This commit is contained in:
sadanslargehole 2024-03-31 22:21:06 -04:00
parent 6fa876bf18
commit f18543cfa7
No known key found for this signature in database
GPG key ID: B2E2F4A5161A7800
2 changed files with 12 additions and 0 deletions

View file

@ -54,3 +54,5 @@ vim.keymap.set("v", "<A-c>", "\"+y", {})
vim.keymap.set("n", "<A-c>", "\"+yy", {})
vim.keymap.set("v", "<A-v>", "\"+p", {})
vim.keymap.set("n", "<A-v>", "\"+p", {})
-- lsp rename
vim.keymap.set("n", "<F2>", vim.lsp.buf.rename, {})

View file

@ -11,6 +11,16 @@ require("formatter").setup({
log_level = vim.log.levels.WARN,
-- All formatter configurations are opt-in
filetype = {
json = {
require("formatter.filetypes.json").prettierd,
function()
return {
exe = "prettierd",
args = { util.escape_path(util.get_current_buffer_file_path()) },
stdin = true,
}
end,
},
yaml = {
require("formatter.filetypes.yaml").yamlfmt,
function()