mirror of
https://github.com/sadan4/nvim.git
synced 2024-11-16 22:34:39 -05:00
been_a_while
This commit is contained in:
parent
6fa876bf18
commit
f18543cfa7
2 changed files with 12 additions and 0 deletions
|
@ -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, {})
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue