mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:47:34 +00:00
Add csv column to statusline
This commit is contained in:
parent
0d8261b924
commit
5c77243b8c
@ -35,6 +35,16 @@ function M.trailing_whitespace()
|
|||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Plugin to print name of current CSV column
|
||||||
|
M.csv_col = {
|
||||||
|
function()
|
||||||
|
return vim.fn.CSVCol(1)
|
||||||
|
end,
|
||||||
|
cond = function()
|
||||||
|
return vim.bo.filetype == "csv" and vim.fn.exists("*CSVCol") == 1
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
-- Configure lualine witha provided theme
|
-- Configure lualine witha provided theme
|
||||||
function M.config_lualine(theme_name)
|
function M.config_lualine(theme_name)
|
||||||
-- Theme name transformations
|
-- Theme name transformations
|
||||||
@ -102,7 +112,7 @@ function M.config_lualine(theme_name)
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_b = { "FugitiveHead", "diff" },
|
lualine_b = { "FugitiveHead", "diff" },
|
||||||
lualine_c = { { "filename", path = 1 }, code_loc },
|
lualine_c = { { "filename", path = 1 }, code_loc, M.csv_col },
|
||||||
lualine_x = { M.custom_ffenc, "filetype" },
|
lualine_x = { M.custom_ffenc, "filetype" },
|
||||||
lualine_y = { "progress", "location" },
|
lualine_y = { "progress", "location" },
|
||||||
lualine_z = {
|
lualine_z = {
|
||||||
|
Loading…
Reference in New Issue
Block a user