Skip to content

Commit 2ec6f65

Browse files
author
Evan Lesmez
committed
Block arrows and ignore some ftypes
1 parent bf43a9c commit 2ec6f65

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

init.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
117117
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
118118

119119
-- TIP: Disable arrow keys in normal mode
120-
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
121-
-- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
122-
-- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
123-
-- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
120+
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
121+
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
122+
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
123+
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
124124

125125
-- Keybinds to make split navigation easier.
126126
-- Use CTRL+<hjkl> to switch between windows
@@ -685,7 +685,7 @@ require('lazy').setup({
685685
-- Disable "format_on_save lsp_fallback" for languages that don't
686686
-- have a well standardized coding style. You can add additional
687687
-- languages here or re-enable it for the disabled ones.
688-
local disable_filetypes = { c = true, cpp = true }
688+
local disable_filetypes = { c = true, cpp = true, php = true, html = true }
689689
if disable_filetypes[vim.bo[bufnr].filetype] then
690690
return nil
691691
else
@@ -698,7 +698,7 @@ require('lazy').setup({
698698
formatters_by_ft = {
699699
lua = { 'stylua' },
700700
-- Conform can also run multiple formatters sequentially
701-
-- python = { "isort", "black" },
701+
python = { 'isort', 'black' },
702702
--
703703
-- You can use 'stop_after_first' to run the first available formatter from the list
704704
-- javascript = { "prettierd", "prettier", stop_after_first = true },

0 commit comments

Comments
 (0)