@@ -194,6 +194,12 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
194194vim .keymap .set (' n' , ' <C-j>' , ' <C-w><C-j>' , { desc = ' Move focus to the lower window' })
195195vim .keymap .set (' n' , ' <C-k>' , ' <C-w><C-k>' , { desc = ' Move focus to the upper window' })
196196
197+ -- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes
198+ -- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
199+ -- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
200+ -- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
201+ -- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
202+
197203-- [[ Basic Autocommands ]]
198204-- See `:help lua-guide-autocommands`
199205
@@ -753,16 +759,14 @@ require('lazy').setup({
753759 -- have a well standardized coding style. You can add additional
754760 -- languages here or re-enable it for the disabled ones.
755761 local disable_filetypes = { c = true , cpp = true }
756- local lsp_format_opt
757762 if disable_filetypes [vim .bo [bufnr ].filetype ] then
758- lsp_format_opt = ' never '
763+ return nil
759764 else
760- lsp_format_opt = ' fallback'
765+ return {
766+ timeout_ms = 500 ,
767+ lsp_format = ' fallback' ,
768+ }
761769 end
762- return {
763- timeout_ms = 500 ,
764- lsp_format = lsp_format_opt ,
765- }
766770 end ,
767771 formatters_by_ft = {
768772 lua = { ' stylua' },
0 commit comments