diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-06-28 01:24:13 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-06-28 01:24:13 +0800 |
| commit | 3526eb6d756e3c37190814eca2e22ce9f7d9f1de (patch) | |
| tree | f334c6ef0a4b77c40980eee7a5fdf07899405069 /vim/lua/configs | |
| parent | e58f70b411ae935fcd32f00d9e3983381fdc0294 (diff) | |
Update
Diffstat (limited to 'vim/lua/configs')
| -rw-r--r-- | vim/lua/configs/conform.lua | 6 | ||||
| -rw-r--r-- | vim/lua/configs/telescope.lua | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/vim/lua/configs/conform.lua b/vim/lua/configs/conform.lua index 411336e..b6fa6bb 100644 --- a/vim/lua/configs/conform.lua +++ b/vim/lua/configs/conform.lua | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | local options = { | 1 | local options = { |
| 2 | formatters_by_ft = { | 2 | formatters_by_ft = { |
| 3 | lua = { "stylua" }, | 3 | lua = { "stylua" }, |
| 4 | css = { "prettier" }, | ||
| 5 | html = { "prettier" }, | ||
| 6 | markdown = { "prettier" }, | ||
| 7 | sh = {"shfmt"}, | 4 | sh = {"shfmt"}, |
| 8 | bash = {"shfmt"}, | 5 | bash = {"shfmt"}, |
| 9 | zsh = {"shfmt"}, | 6 | zsh = {"shfmt"}, |
| 7 | markdown = { "prettier" }, | ||
| 8 | css = { "prettier" }, | ||
| 9 | html = { "prettier" }, | ||
| 10 | }, | 10 | }, |
| 11 | 11 | ||
| 12 | -- format_on_save = { | 12 | -- format_on_save = { |
diff --git a/vim/lua/configs/telescope.lua b/vim/lua/configs/telescope.lua index 60828e9..70eddf4 100644 --- a/vim/lua/configs/telescope.lua +++ b/vim/lua/configs/telescope.lua | |||
| @@ -6,6 +6,10 @@ return { | |||
| 6 | -- ["<c-k>"] = "move_selection_previous", | 6 | -- ["<c-k>"] = "move_selection_previous", |
| 7 | ["<C-w>"] = require("telescope.actions.layout").toggle_preview, | 7 | ["<C-w>"] = require("telescope.actions.layout").toggle_preview, |
| 8 | ["<C-u>"] = false, | 8 | ["<C-u>"] = false, |
| 9 | ["<C-o>"] = function(p_bufnr) | ||
| 10 | require("telescope.actions").send_selected_to_qflist(p_bufnr) | ||
| 11 | vim.cmd.cfdo("edit") | ||
| 12 | end, | ||
| 9 | }, | 13 | }, |
| 10 | }, | 14 | }, |
| 11 | layout_config = { | 15 | layout_config = { |
| @@ -45,7 +49,7 @@ return { | |||
| 45 | }, | 49 | }, |
| 46 | }, | 50 | }, |
| 47 | }, | 51 | }, |
| 48 | on_attach = function () | 52 | on_attach = function() |
| 49 | require("telescope").load_extension("aerial") | 53 | require("telescope").load_extension("aerial") |
| 50 | end | 54 | end |
| 51 | } | 55 | } |