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

View File

@ -33,11 +33,10 @@ parser_config.hare = {
files = { "src/parser.c" },
-- optional entries:
-- branch = "main", -- default branch in case of git repo if different from master
generate_requires_npm = false, -- if stand-alone parser without npm dependencies
generate_requires_npm = false, -- if stand-alone parser without npm dependencies
requires_generate_from_grammar = false, -- if folder contains pre-generated src/parser.c
},
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
ft_to_parser.hare = "hare"
vim.treesitter.language.register('hare', 'hare')