This commit is contained in:
sfigato 2024-03-10 22:34:22 +01:00
parent 307aa67a9c
commit 06db10650f
Signed by: blallo
GPG Key ID: C530464EEDCF489A
2 changed files with 21 additions and 22 deletions

View File

@ -23,9 +23,9 @@
-- let('g', 'airline_powerline_fonts ', 1) -- let('g', 'airline_powerline_fonts ', 1)
-- github-theme -- github-theme
lualine_c = {function() lualine_c = { function()
return vim.fn['nvim_treesitter#statusline'](90) return vim.fn['nvim_treesitter#statusline'](90)
end} end }
require('lualine').setup({ require('lualine').setup({
options = { options = {
@ -34,13 +34,13 @@ require('lualine').setup({
-- section_separators = {'', ''}, -- section_separators = {'', ''},
-- component_separators = {'', ''} -- component_separators = {'', ''}
sections = { sections = {
lualine_a = {'mode'}, lualine_a = { 'mode' },
lualine_b = {'branch', 'diff', 'diagnostics'}, lualine_b = { 'branch', 'diff', 'diagnostics' },
-- lualine_c = {'filename'}, -- lualine_c = {'filename'},
lualine_c = lualine_c, lualine_c = lualine_c,
lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = {'progress'}, lualine_y = { 'progress' },
lualine_z = {'location'} lualine_z = { 'location' }
}, },
} }
}) })

View File

@ -39,5 +39,4 @@ parser_config.hare = {
filetype = "ha", -- if filetype does not match the parser name filetype = "ha", -- if filetype does not match the parser name
} }
local ft_to_parser = require "nvim-treesitter.parsers".filetype_to_parsername vim.treesitter.language.register('hare', 'hare')
ft_to_parser.hare = "hare"