Compare commits
2 commits
d029e2a06e
...
21dcb21444
Author | SHA1 | Date | |
---|---|---|---|
21dcb21444 | |||
fafa7342ce |
2 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,14 @@
|
|||
local function total_lines()
|
||||
local lc = vim.fn.line('$')
|
||||
if lc < 1 then
|
||||
return ''
|
||||
elseif lc == 1 then
|
||||
return '(1 line)'
|
||||
else
|
||||
return string.format('(%d lines)', lc)
|
||||
end
|
||||
end
|
||||
|
||||
require("lualine").setup {
|
||||
options = {
|
||||
theme = 'moonfly',
|
||||
|
@ -6,8 +17,8 @@ require("lualine").setup {
|
|||
lualine_a = { 'buffers' },
|
||||
lualine_b = {},
|
||||
lualine_c = {},
|
||||
lualine_x = {},
|
||||
lualine_y = { 'filename' },
|
||||
lualine_x = { 'filename' },
|
||||
lualine_y = { total_lines },
|
||||
lualine_z = { 'tabs' },
|
||||
},
|
||||
sections = {
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
local configs = require("nvim-treesitter.configs")
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = { "rust", "lua", "vim", "vimdoc", "latex", "ocaml",
|
||||
ensure_installed = { "rust", "lua", "vim", "vimdoc", "ocaml",
|
||||
"yaml", "dockerfile", "bash", "html", "javascript", "css", "go",
|
||||
"json", "python", "fish" },
|
||||
sync_install = false,
|
||||
disable = { "latex" },
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = { "make" },
|
||||
|
|
Loading…
Reference in a new issue