diff --git a/lua/config/theme.lua b/lua/config/theme.lua index b9a61bc..39828f8 100644 --- a/lua/config/theme.lua +++ b/lua/config/theme.lua @@ -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({ diff --git a/lua/config/treesitter.lua b/lua/config/treesitter.lua index cdeedc6..3319d59 100644 --- a/lua/config/treesitter.lua +++ b/lua/config/treesitter.lua @@ -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')