master
blallo 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) -- 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 = {
-- theme = "melange", -- theme = "melange",
-- theme = "github" -- theme = "github"
-- 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' }
}, },
} }
}) })
-- require('github-theme').setup({ -- require('github-theme').setup({

View File

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