Neovim - set filetype for gotmpl.
This commit is contained in:
parent
80aa296d84
commit
9d10fe9af9
1 changed files with 5 additions and 0 deletions
|
@ -101,3 +101,8 @@ vim.api.nvim_set_keymap('n', "<leader>s", ":set spell!<cr>", { noremap = true, s
|
|||
vim.api.nvim_set_keymap('n', "<tab>", "<C-w>w", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('i', "<C-a>", "<esc>I", { silent = true })
|
||||
vim.api.nvim_set_keymap('i', "<C-e>", "<esc>A", { silent = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
||||
pattern = {"*.gotmpl"},
|
||||
callback = function() vim.bo.filetype = "yaml" end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue