mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-01 17:07:45 +02:00
nvim: improved guidelines for filetypes
This commit is contained in:
parent
e63be081b6
commit
7e7f1713ae
3
.config/nvim/after/ftplugin/html.lua
Normal file
3
.config/nvim/after/ftplugin/html.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
vim.o.shiftwidth = 2
|
||||||
|
vim.o.softtabstop = 2
|
||||||
|
vim.o.textwidth = 100
|
@ -25,6 +25,7 @@ vim.api.nvim_create_autocmd({ 'VimLeave' },
|
|||||||
|
|
||||||
vim.o.shiftwidth = 2
|
vim.o.shiftwidth = 2
|
||||||
vim.o.softtabstop = 2
|
vim.o.softtabstop = 2
|
||||||
|
vim.o.textwidth = 100
|
||||||
|
|
||||||
-- frabjous/knap
|
-- frabjous/knap
|
||||||
vim.keymap.set('n', '<leader>p', require("knap").toggle_autopreviewing, { noremap = true })
|
vim.keymap.set('n', '<leader>p', require("knap").toggle_autopreviewing, { noremap = true })
|
||||||
|
@ -108,7 +108,7 @@ vim.filetype.add({
|
|||||||
nim = "nim",
|
nim = "nim",
|
||||||
py = "python",
|
py = "python",
|
||||||
sage = "python",
|
sage = "python",
|
||||||
sh = "shell",
|
sh = "bash",
|
||||||
tex = "tex",
|
tex = "tex",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user