···11+local ok, feline = pcall(require, "feline")
22+if not ok then return end
33+44+local vi_mode_utils = require("feline.providers.vi_mode")
55+local lsp = require("feline.providers.lsp")
66+77+local comps = {
88+ vi_mode = {
99+ left = {
1010+ provider = function()
1111+ local label = ' ' .. vi_mode_utils.get_vim_mode() .. ' '
1212+ return label
1313+ end,
1414+ hl = function()
1515+ local set_color = {
1616+ name = vi_mode_utils.get_mode_highlight_name(),
1717+ bg = vi_mode_utils.get_mode_color(),
1818+ style = 'bold',
1919+ }
2020+ return set_color
2121+ end,
2222+ left_sep = ' ',
2323+ right_sep = ' ',
2424+ }
2525+ },
2626+ -- Parse file information
2727+ file = {
2828+ -- File name
2929+ info = {
3030+ provider = {
3131+ name = 'file_info',
3232+ opts = {
3333+ type = 'relative',
3434+ file_modified_icon = '',
3535+ }
3636+ },
3737+ hl = {},
3838+ icon = '',
3939+ },
4040+ -- File type
4141+ type = {
4242+ provider = function()
4343+ local type = vim.bo.filetype:lower()
4444+ local extension = vim.fn.expand("%:e")
4545+ local icon = require('nvim-web-devicons').get_icon(extension)
4646+ if icon == nil then
4747+ icon = ' '
4848+ end
4949+ return ' ' .. icon .. ' ' .. type
5050+ end,
5151+ hl = {},
5252+ left_sep = ' ',
5353+ right_sep = ' ',
5454+ },
5555+ -- File format (OS?)
5656+ os = {
5757+ provider = function()
5858+ local os = vim.bo.fileformat:lower()
5959+ local icon
6060+ if os == 'unix' then
6161+ icon = ' '
6262+ elseif os == 'mac' then
6363+ icon = ' '
6464+ else
6565+ icon = ' '
6666+ end
6767+ return icon .. os
6868+ end,
6969+ },
7070+ }
7171+}
7272+7373+feline.setup({
7474+ force_incactive = {
7575+ filetypes = {
7676+ '^NvimTree$',
7777+ '^packser$',
7878+ '^vista$',
7979+ '^help$',
8080+ },
8181+ buftypes = {
8282+ '^terminal$'
8383+ },
8484+ bufnames = {},
8585+ }
8686+})
+31-31
lua/user/options.lua
···11-- Change fish to bash
22-- check this issue: https://github.com/kyazdani42/nvim-tree.lua/issues/549
33local fish = "fish"
44-if vim.o.shell:sub(-#fish) == fish then
44+if vim.o.shell:sub(- #fish) == fish then
55 vim.opt.shell = "/bin/bash"
66end
7788local options = {
99- backup = false, -- creates a backup file
1010- clipboard = "unnamedplus", -- allows neovim to access the system clipboard
1111- cmdheight = 2, -- more space in the neovim command line for displaying messages
99+ backup = false, -- creates a backup file
1010+ clipboard = "unnamedplus", -- allows neovim to access the system clipboard
1111+ cmdheight = 2, -- more space in the neovim command line for displaying messages
1212 completeopt = { "menuone", "noselect" }, -- mostly just for cmp
1313- conceallevel = 0, -- so that `` is visible in markdown files
1414- fileencoding = "utf-8", -- the encoding written to a file
1515- hlsearch = true, -- highlight all matches on previous search pattern
1616- ignorecase = true, -- ignore case in search patterns
1313+ conceallevel = 0, -- so that `` is visible in markdown files
1414+ fileencoding = "utf-8", -- the encoding written to a file
1515+ hlsearch = true, -- highlight all matches on previous search pattern
1616+ ignorecase = true, -- ignore case in search patterns
1717 -- mouse = "a", -- allow the mouse to be used in neovim
1818- pumheight = 10, -- pop up menu height
1919- showmode = false, -- we don't need to see things like -- INSERT -- anymore
2020- showtabline = 2, -- always show tabs
2121- smartcase = true, -- smart case
2222- smartindent = true, -- make indenting smarter again
2323- splitbelow = true, -- force all horizontal splits to go below current window
2424- splitright = true, -- force all vertical splits to go to the right of current window
2525- swapfile = false, -- creates a swapfile
2626- termguicolors = true, -- set term gui colors (most terminals support this)
2727- timeoutlen = 100, -- time to wait for a mapped sequence to complete (in milliseconds)
2828- undofile = true, -- enable persistent undo
2929- updatetime = 300, -- faster completion (4000ms default)
3030- 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
3131- expandtab = true, -- convert tabs to spaces
3232- shiftwidth = 2, -- the number of spaces inserted for each indentation
3333- tabstop = 2, -- insert 2 spaces for a tab
3434- cursorline = true, -- highlight the current line
3535- number = true, -- set numbered lines
3636- relativenumber = false, -- set relative numbered lines
3737- numberwidth = 4, -- set number column width to 2 {default 4}
3838- signcolumn = "yes", -- always show the sign column, otherwise it would shift the text each time
3939- wrap = false, -- display lines as one long line
4040- scrolloff = 8, -- is one of my fav
1818+ pumheight = 10, -- pop up menu height
1919+ showmode = false, -- we don't need to see things like -- INSERT -- anymore
2020+ showtabline = 2, -- always show tabs
2121+ smartcase = true, -- smart case
2222+ smartindent = true, -- make indenting smarter again
2323+ splitbelow = true, -- force all horizontal splits to go below current window
2424+ splitright = true, -- force all vertical splits to go to the right of current window
2525+ swapfile = false, -- creates a swapfile
2626+ termguicolors = true, -- set term gui colors (most terminals support this)
2727+ timeoutlen = 100, -- time to wait for a mapped sequence to complete (in milliseconds)
2828+ undofile = true, -- enable persistent undo
2929+ updatetime = 300, -- faster completion (4000ms default)
3030+ 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
3131+ expandtab = true, -- convert tabs to spaces
3232+ shiftwidth = 2, -- the number of spaces inserted for each indentation
3333+ tabstop = 2, -- insert 2 spaces for a tab
3434+ cursorline = true, -- highlight the current line
3535+ number = true, -- set numbered lines
3636+ relativenumber = false, -- set relative numbered lines
3737+ numberwidth = 4, -- set number column width to 2 {default 4}
3838+ signcolumn = "yes", -- always show the sign column, otherwise it would shift the text each time
3939+ wrap = false, -- display lines as one long line
4040+ scrolloff = 8, -- is one of my fav
4141 sidescrolloff = 8,
4242 -- guifont = "monospace:h17", -- the font used in graphical neovim applications
4343 whichwrap = "<,>,[,]",
+1
lua/user/plugins.lua
···5353 use "akinsho/bufferline.nvim"
5454 use "moll/vim-bbye"
5555 use "nvim-lualine/lualine.nvim"
5656+ use "feline-nvim/feline.nvim" -- More customizable statusline plugin
56575758 -- Colorschemes
5859 use "folke/tokyonight.nvim"