1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-28 05:57:45 +01:00

nvim: improved guidelines for filetypes

This commit is contained in:
tiyn 2024-04-18 01:24:55 +02:00
parent e63be081b6
commit 7e7f1713ae
3 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,3 @@
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100

View File

@ -25,6 +25,7 @@ vim.api.nvim_create_autocmd({ 'VimLeave' },
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100
-- frabjous/knap
vim.keymap.set('n', '<leader>p', require("knap").toggle_autopreviewing, { noremap = true })

View File

@ -108,7 +108,7 @@ vim.filetype.add({
nim = "nim",
py = "python",
sage = "python",
sh = "shell",
sh = "bash",
tex = "tex",
},
})