this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Organizing modules, working on custom statusline

+118 -31
+86
lua/core/statusline/init.lua
··· 1 + local ok, feline = pcall(require, "feline") 2 + if not ok then return end 3 + 4 + local vi_mode_utils = require("feline.providers.vi_mode") 5 + local lsp = require("feline.providers.lsp") 6 + 7 + local comps = { 8 + vi_mode = { 9 + left = { 10 + provider = function() 11 + local label = ' ' .. vi_mode_utils.get_vim_mode() .. ' ' 12 + return label 13 + end, 14 + hl = function() 15 + local set_color = { 16 + name = vi_mode_utils.get_mode_highlight_name(), 17 + bg = vi_mode_utils.get_mode_color(), 18 + style = 'bold', 19 + } 20 + return set_color 21 + end, 22 + left_sep = ' ', 23 + right_sep = ' ', 24 + } 25 + }, 26 + -- Parse file information 27 + file = { 28 + -- File name 29 + info = { 30 + provider = { 31 + name = 'file_info', 32 + opts = { 33 + type = 'relative', 34 + file_modified_icon = '', 35 + } 36 + }, 37 + hl = {}, 38 + icon = '', 39 + }, 40 + -- File type 41 + type = { 42 + provider = function() 43 + local type = vim.bo.filetype:lower() 44 + local extension = vim.fn.expand("%:e") 45 + local icon = require('nvim-web-devicons').get_icon(extension) 46 + if icon == nil then 47 + icon = ' ' 48 + end 49 + return ' ' .. icon .. ' ' .. type 50 + end, 51 + hl = {}, 52 + left_sep = ' ', 53 + right_sep = ' ', 54 + }, 55 + -- File format (OS?) 56 + os = { 57 + provider = function() 58 + local os = vim.bo.fileformat:lower() 59 + local icon 60 + if os == 'unix' then 61 + icon = '  ' 62 + elseif os == 'mac' then 63 + icon = '  ' 64 + else 65 + icon = '  ' 66 + end 67 + return icon .. os 68 + end, 69 + }, 70 + } 71 + } 72 + 73 + feline.setup({ 74 + force_incactive = { 75 + filetypes = { 76 + '^NvimTree$', 77 + '^packser$', 78 + '^vista$', 79 + '^help$', 80 + }, 81 + buftypes = { 82 + '^terminal$' 83 + }, 84 + bufnames = {}, 85 + } 86 + })
+31 -31
lua/user/options.lua
··· 1 1 -- Change fish to bash 2 2 -- check this issue: https://github.com/kyazdani42/nvim-tree.lua/issues/549 3 3 local fish = "fish" 4 - if vim.o.shell:sub(-#fish) == fish then 4 + if vim.o.shell:sub(- #fish) == fish then 5 5 vim.opt.shell = "/bin/bash" 6 6 end 7 7 8 8 local options = { 9 - backup = false, -- creates a backup file 10 - clipboard = "unnamedplus", -- allows neovim to access the system clipboard 11 - cmdheight = 2, -- more space in the neovim command line for displaying messages 9 + backup = false, -- creates a backup file 10 + clipboard = "unnamedplus", -- allows neovim to access the system clipboard 11 + cmdheight = 2, -- more space in the neovim command line for displaying messages 12 12 completeopt = { "menuone", "noselect" }, -- mostly just for cmp 13 - conceallevel = 0, -- so that `` is visible in markdown files 14 - fileencoding = "utf-8", -- the encoding written to a file 15 - hlsearch = true, -- highlight all matches on previous search pattern 16 - ignorecase = true, -- ignore case in search patterns 13 + conceallevel = 0, -- so that `` is visible in markdown files 14 + fileencoding = "utf-8", -- the encoding written to a file 15 + hlsearch = true, -- highlight all matches on previous search pattern 16 + ignorecase = true, -- ignore case in search patterns 17 17 -- mouse = "a", -- allow the mouse to be used in neovim 18 - pumheight = 10, -- pop up menu height 19 - showmode = false, -- we don't need to see things like -- INSERT -- anymore 20 - showtabline = 2, -- always show tabs 21 - smartcase = true, -- smart case 22 - smartindent = true, -- make indenting smarter again 23 - splitbelow = true, -- force all horizontal splits to go below current window 24 - splitright = true, -- force all vertical splits to go to the right of current window 25 - swapfile = false, -- creates a swapfile 26 - termguicolors = true, -- set term gui colors (most terminals support this) 27 - timeoutlen = 100, -- time to wait for a mapped sequence to complete (in milliseconds) 28 - undofile = true, -- enable persistent undo 29 - updatetime = 300, -- faster completion (4000ms default) 30 - writebackup = false, -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited 31 - expandtab = true, -- convert tabs to spaces 32 - shiftwidth = 2, -- the number of spaces inserted for each indentation 33 - tabstop = 2, -- insert 2 spaces for a tab 34 - cursorline = true, -- highlight the current line 35 - number = true, -- set numbered lines 36 - relativenumber = false, -- set relative numbered lines 37 - numberwidth = 4, -- set number column width to 2 {default 4} 38 - signcolumn = "yes", -- always show the sign column, otherwise it would shift the text each time 39 - wrap = false, -- display lines as one long line 40 - scrolloff = 8, -- is one of my fav 18 + pumheight = 10, -- pop up menu height 19 + showmode = false, -- we don't need to see things like -- INSERT -- anymore 20 + showtabline = 2, -- always show tabs 21 + smartcase = true, -- smart case 22 + smartindent = true, -- make indenting smarter again 23 + splitbelow = true, -- force all horizontal splits to go below current window 24 + splitright = true, -- force all vertical splits to go to the right of current window 25 + swapfile = false, -- creates a swapfile 26 + termguicolors = true, -- set term gui colors (most terminals support this) 27 + timeoutlen = 100, -- time to wait for a mapped sequence to complete (in milliseconds) 28 + undofile = true, -- enable persistent undo 29 + updatetime = 300, -- faster completion (4000ms default) 30 + writebackup = false, -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited 31 + expandtab = true, -- convert tabs to spaces 32 + shiftwidth = 2, -- the number of spaces inserted for each indentation 33 + tabstop = 2, -- insert 2 spaces for a tab 34 + cursorline = true, -- highlight the current line 35 + number = true, -- set numbered lines 36 + relativenumber = false, -- set relative numbered lines 37 + numberwidth = 4, -- set number column width to 2 {default 4} 38 + signcolumn = "yes", -- always show the sign column, otherwise it would shift the text each time 39 + wrap = false, -- display lines as one long line 40 + scrolloff = 8, -- is one of my fav 41 41 sidescrolloff = 8, 42 42 -- guifont = "monospace:h17", -- the font used in graphical neovim applications 43 43 whichwrap = "<,>,[,]",
+1
lua/user/plugins.lua
··· 53 53 use "akinsho/bufferline.nvim" 54 54 use "moll/vim-bbye" 55 55 use "nvim-lualine/lualine.nvim" 56 + use "feline-nvim/feline.nvim" -- More customizable statusline plugin 56 57 57 58 -- Colorschemes 58 59 use "folke/tokyonight.nvim"