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,
|
||||
})
|
||||
end
|
||||
|
||||
map("n", "<leader>vt", ":lua switch_virtual_text()<CR>")
|
||||
map("c", "<C-r>", ":Telescope command_history<CR>")
|
||||
map("n", "<leader>gs", ":Telescope git_status<CR>")
|
||||
|
@ -63,7 +64,7 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] =
|
|||
{
|
||||
underline = false
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
vim.opt.mouse = "c" -- set mouse in command line mode
|
||||
vim.opt.colorcolumn = "80" -- highlight this column
|
||||
|
@ -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.expandtab = true -- converts tabs to white space
|
||||
vim.opt.shiftwidth = 4 -- width for autoindents
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
sls = "sls.yaml.jinja",
|
||||
jinja = 'jinja',
|
||||
jinja2 = 'jinja',
|
||||
j2 = 'jinja',
|
||||
},
|
||||
})
|
||||
vim.cmd [[
|
||||
highlight clear
|
||||
colorscheme gruvbox
|
||||
autocmd BufNewFile,BufRead *.sls set filetype=sls.yaml.jinja2
|
||||
]]
|
||||
|
|
|
@ -152,7 +152,8 @@ require("lazy").setup({
|
|||
opts = require('plugins.lualine').config
|
||||
},
|
||||
{ 'RRethy/vim-illuminate' },
|
||||
{ 'sheerun/vim-polyglot' },
|
||||
--{ 'sheerun/vim-polyglot' }, -- not maintained
|
||||
{ 'HiPhish/jinja.vim' },
|
||||
|
||||
-- themes
|
||||
{ "ellisonleao/gruvbox.nvim", priority = 1000, config = true },
|
||||
|
|
Loading…
Reference in a new issue