treesitter templ, tab 8, M-<digit> harpoon, indent-blankline new version

This commit is contained in:
Łukasz Pankowski 2023-11-04 09:59:18 +01:00
parent 8b998df350
commit d46929c1f3
5 changed files with 17 additions and 4 deletions

View File

@ -63,6 +63,17 @@ require('nvim-treesitter.configs').setup {
}, },
} }
local treesitter_parser_config = require "nvim-treesitter.parsers".get_parser_configs()
treesitter_parser_config.templ = {
install_info = {
url = "https://github.com/vrischmann/tree-sitter-templ.git",
files = { "src/parser.c", "src/scanner.c" },
branch = "master",
},
}
vim.treesitter.language.register('templ', 'templ')
org.setup({ org.setup({
org_agenda_files = { '~/org/*.org' }, org_agenda_files = { '~/org/*.org' },
org_default_notes_file = '~/org/capture.org', org_default_notes_file = '~/org/capture.org',

View File

@ -35,7 +35,7 @@ vim.o.termguicolors = true
vim.o.scrolloff = 8 vim.o.scrolloff = 8
vim.o.tabstop = 4 vim.o.tabstop = 8
vim.o.softtabstop = 4 vim.o.softtabstop = 4
vim.o.shiftwidth = 4 vim.o.shiftwidth = 4
vim.o.expandtab = true vim.o.expandtab = true

View File

@ -148,7 +148,7 @@ key('n', '<leader>hk', function()
end, { desc = '[H]arpoon prev (k)' }) end, { desc = '[H]arpoon prev (k)' })
for i = 1, 9, 1 do for i = 1, 9, 1 do
key('n', '<leader>h' .. i, function() key('n', '<M-' .. i .. '>', function()
require("harpoon.ui").nav_file(i) require("harpoon.ui").nav_file(i)
end, { desc = '[H]arpoon nav_file [' .. i .. ']' }) end, { desc = '[H]arpoon nav_file [' .. i .. ']' })
end end

View File

@ -28,9 +28,10 @@ return {
{ {
-- Indentation guides (see `:help indent_blankline.txt`) -- Indentation guides (see `:help indent_blankline.txt`)
'lukas-reineke/indent-blankline.nvim', 'lukas-reineke/indent-blankline.nvim',
main = "ibl",
opts = { opts = {
char = '', -- char = '┊',
show_trailing_blankline_indent = false, -- show_trailing_blankline_indent = false,
}, },
}, },

View File

@ -16,6 +16,7 @@ return {
dependencies = { dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects', 'nvim-treesitter/nvim-treesitter-textobjects',
'nvim-orgmode/orgmode', -- as configured together 'nvim-orgmode/orgmode', -- as configured together
'vrischmann/tree-sitter-templ',
}, },
build = build =
':TSUpdate' ':TSUpdate'