neovim: remove unused stuff
This commit is contained in:
@@ -8,14 +8,3 @@ vim.api.nvim_create_user_command("FormattingEnable", formatting.enable, {})
|
|||||||
vim.api.nvim_create_user_command("FormattingDisable", formatting.disable, {})
|
vim.api.nvim_create_user_command("FormattingDisable", formatting.disable, {})
|
||||||
vim.api.nvim_create_user_command("FormattingToggle", formatting.toggle, {})
|
vim.api.nvim_create_user_command("FormattingToggle", formatting.toggle, {})
|
||||||
vim.api.nvim_create_user_command("FormattingStatus", formatting.status, {})
|
vim.api.nvim_create_user_command("FormattingStatus", formatting.status, {})
|
||||||
|
|
||||||
vim.api.nvim_create_user_command("Format", function()
|
|
||||||
local bf = vim.bo.filetype
|
|
||||||
|
|
||||||
if bf == "typescript" or bf == "typescriptreact" then
|
|
||||||
vim.cmd(":!npx prettier --loglevel silent -w %")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.lsp.buf.format()
|
|
||||||
end, {})
|
|
||||||
|
|||||||
@@ -37,6 +37,3 @@ vim.keymap.set("n", "<C-q><C-q>", function()
|
|||||||
end)
|
end)
|
||||||
vim.keymap.set("n", "<C-q>n", vim.cmd.cnext)
|
vim.keymap.set("n", "<C-q>n", vim.cmd.cnext)
|
||||||
vim.keymap.set("n", "<C-q>N", vim.cmd.cprevious)
|
vim.keymap.set("n", "<C-q>N", vim.cmd.cprevious)
|
||||||
|
|
||||||
-- formatting
|
|
||||||
vim.keymap.set("n", "<C-g>", formatting.toggle)
|
|
||||||
|
|||||||
@@ -53,4 +53,3 @@ telescope.load_extension("fzf")
|
|||||||
|
|
||||||
vim.keymap.set("n", "<leader>f", builtin.find_files)
|
vim.keymap.set("n", "<leader>f", builtin.find_files)
|
||||||
vim.keymap.set("n", "<leader>p", vim.cmd.Telescope)
|
vim.keymap.set("n", "<leader>p", vim.cmd.Telescope)
|
||||||
vim.keymap.set("n", "<leader>s", builtin.lsp_document_symbols)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user