update jinja stuff
This commit is contained in:
parent
d593845959
commit
9bcaf4cc77
2 changed files with 22 additions and 14 deletions
|
@ -33,6 +33,7 @@ function switch_virtual_text()
|
||||||
virtual_text = VIRTUAL_TEXT_ENABLED,
|
virtual_text = VIRTUAL_TEXT_ENABLED,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
map("n", "<leader>vt", ":lua switch_virtual_text()<CR>")
|
map("n", "<leader>vt", ":lua switch_virtual_text()<CR>")
|
||||||
map("c", "<C-r>", ":Telescope command_history<CR>")
|
map("c", "<C-r>", ":Telescope command_history<CR>")
|
||||||
map("n", "<leader>gs", ":Telescope git_status<CR>")
|
map("n", "<leader>gs", ":Telescope git_status<CR>")
|
||||||
|
@ -76,8 +77,14 @@ vim.opt.tabstop = 4 -- number of columns occupied by a tab
|
||||||
vim.opt.softtabstop = 4 -- see multiple spaces as tabstops so <BS> does the right thing
|
vim.opt.softtabstop = 4 -- see multiple spaces as tabstops so <BS> does the right thing
|
||||||
vim.opt.expandtab = true -- converts tabs to white space
|
vim.opt.expandtab = true -- converts tabs to white space
|
||||||
vim.opt.shiftwidth = 4 -- width for autoindents
|
vim.opt.shiftwidth = 4 -- width for autoindents
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
sls = "sls.yaml.jinja",
|
||||||
|
jinja = 'jinja',
|
||||||
|
jinja2 = 'jinja',
|
||||||
|
j2 = 'jinja',
|
||||||
|
},
|
||||||
|
})
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
highlight clear
|
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
autocmd BufNewFile,BufRead *.sls set filetype=sls.yaml.jinja2
|
|
||||||
]]
|
]]
|
||||||
|
|
|
@ -152,7 +152,8 @@ require("lazy").setup({
|
||||||
opts = require('plugins.lualine').config
|
opts = require('plugins.lualine').config
|
||||||
},
|
},
|
||||||
{ 'RRethy/vim-illuminate' },
|
{ 'RRethy/vim-illuminate' },
|
||||||
{ 'sheerun/vim-polyglot' },
|
--{ 'sheerun/vim-polyglot' }, -- not maintained
|
||||||
|
{ 'HiPhish/jinja.vim' },
|
||||||
|
|
||||||
-- themes
|
-- themes
|
||||||
{ "ellisonleao/gruvbox.nvim", priority = 1000, config = true },
|
{ "ellisonleao/gruvbox.nvim", priority = 1000, config = true },
|
||||||
|
|
Loading…
Reference in a new issue