treesitter templ, tab 8, M-<digit> harpoon, indent-blankline new version
This commit is contained in:
parent
8b998df350
commit
d46929c1f3
@ -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',
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user