Move location in feline to left section, set ch to 0

This commit is contained in:
Evie Litherland-Smith 2023-02-15 17:29:08 +00:00
parent f2f690e172
commit 399675f8b1
4 changed files with 27 additions and 13 deletions

View file

@ -1,17 +1,28 @@
local components = require("catppuccin.groups.integrations.feline").get()
local original_provider = components.active[2][1].provider
components.active[2][1].provider = function()
local sources = {
original_provider(),
require("nvim-treesitter").statusline(),
}
for _, message in pairs(sources) do
if message ~= "" then
return message
-- local original_provider = components.active[2][1].provider
-- components.active[2][1].provider = function()
-- local sources = {
-- original_provider(),
-- require("nvim-treesitter").statusline(),
-- }
-- for _, message in pairs(sources) do
-- if message ~= "" then
-- return message
-- end
-- end
-- return ""
-- end
table.insert(components.active[1], 12, {
provider = function()
local pos = require("nvim-treesitter").statusline()
if pos and pos ~= "" then
return pos
end
end
return ""
end
return ""
end,
hl = components.active[1][11].hl,
left_sep = components.active[1][11].left_sep,
})
require("feline").setup({
components = components,
})

View file

@ -7,8 +7,9 @@ vim.keymap.set({ "n", "t" }, "<A-j>", "<CMD>NavigatorDown<CR>")
vim.keymap.set({ "n", "t" }, "<A-p>", "<CMD>NavigatorPrevious<CR>")
-- Telescope
vim.keymap.set("n", "<leader>;", "<cmd>Telescope builtin<cr>")
vim.keymap.set("n", "<leader>f;", "<cmd>Telescope builtin<cr>")
vim.keymap.set("n", "<leader>ff", "<cmd>Telescope find_files<cr>")
vim.keymap.set("n", "<leader>fb", "<cmd>Telescope buffers<cr>")
vim.keymap.set("n", "<leader>fg", "<cmd>Telescope live_grep<cr>")
vim.keymap.set("n", "<leader>fp", "<cmd>Telescope projects<cr>")
vim.keymap.set("n", "<leader>fa", "<cmd>Telescope aerial<cr>")

View file

@ -1,4 +1,5 @@
vim.opt.title = true
vim.opt.cmdheight = 0
vim.g.python3_host_prog = "/usr/bin/python3"
vim.g.python_indent = {
open_paren = "shiftwidth()",

View file

@ -104,6 +104,7 @@ require("packer").startup({
})
use({
"folke/trouble.nvim",
requires = "nvim-tree/nvim-web-devicons",
config = function()
require("config.trouble")
end,