updates
This commit is contained in:
1 parent
ce52200ed5
commit
f7c7783e0a
2 files changed
+59
No files matched your search
@@ -0,0 +1,36 @@
|
||||
local conform = require('conform')
|
||||
|
||||
conform.setup({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
svelte = { { "prettierd", "prettier" } },
|
||||
javascript = { { "prettierd", "prettier" } },
|
||||
typescript = { { "prettierd", "prettier" } },
|
||||
javascriptreact = { { "prettierd", "prettier" } },
|
||||
typescriptreact = { { "prettierd", "prettier" } },
|
||||
json = { { "prettierd", "prettier" } },
|
||||
graphql = { { "prettierd", "prettier" } },
|
||||
java = { "google-java-format" },
|
||||
kotlin = { "ktlint" },
|
||||
ruby = { "standardrb" },
|
||||
markdown = { { "prettierd", "prettier" } },
|
||||
erb = { "htmlbeautifier" },
|
||||
html = { "htmlbeautifier" },
|
||||
bash = { "beautysh" },
|
||||
proto = { "buf" },
|
||||
rust = { "rustfmt" },
|
||||
yaml = { "yamlfix" },
|
||||
toml = { "taplo" },
|
||||
css = { { "prettierd", "prettier" } },
|
||||
scss = { { "prettierd", "prettier" } },
|
||||
sh = { { "shellcheck" } },
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set({ "n", "v" }, "<leader>l", function()
|
||||
conform.format({
|
||||
lsp_fallback = true,
|
||||
async = false,
|
||||
timeout_ms = 1000,
|
||||
})
|
||||
end, { desc = "Format file or range (in visual mode)" })
|
||||
@@ -0,0 +1,23 @@
|
||||
require("url-open").setup({
|
||||
-- default will open url with default browser of your system or you can choose your browser like this
|
||||
-- open_app = "micorsoft-edge-stable",
|
||||
-- google-chrome, firefox, micorsoft-edge-stable, opera, brave, vivaldi
|
||||
open_app = "default",
|
||||
open_only_when_cursor_on_url = true,
|
||||
highlight_url = {
|
||||
all_urls = {
|
||||
enabled = true,
|
||||
fg = "#21d5ff", -- nil will use default color
|
||||
bg = nil, -- transparent
|
||||
underline = true,
|
||||
},
|
||||
cursor_move = {
|
||||
enabled = true,
|
||||
fg = "#199eff", -- nil will use default color
|
||||
bg = nil, -- transparent
|
||||
underline = true,
|
||||
},
|
||||
},
|
||||
deep_pattern = false,
|
||||
extra_patterns = { },
|
||||
})
|
||||
Reference in new issue
Block a user