add: neovim: lualine
This commit is contained in:
parent
66027b05c2
commit
745234408a
4 changed files with 61 additions and 2 deletions
|
@ -49,7 +49,9 @@ scoop import .\bin\scoop_apps\scoop_minimal_apps.json
|
|||
|
||||
# make symbolic links
|
||||
# neovim
|
||||
New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\init.vim -Target (Resolve-Path .\dotfiles\neovim\init.vim) -Force
|
||||
New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\init.lua -Target (Resolve-Path .\dotfiles\neovim\init.lua) -Force
|
||||
New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\lua\plugins.lua -Target (Resolve-Path .\dotfiles\neovim\lua\plugins.lua) -Force
|
||||
New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\lua\lualine_setup.lua -Target (Resolve-Path .\dotfiles\neovim\lua\lualine_setup.lua) -Force
|
||||
# pwsh
|
||||
New-Item -ItemType SymbolicLink -Path $PROFILE -Target (Resolve-Path .\dotfiles\pwsh\powershell_profile.ps1) -Force
|
||||
New-Item -ItemType SymbolicLink -Path ~\.config\powershell\chezmoi_completion.ps1 -Target (Resolve-Path .\dotfiles\pwsh\chezmoi_completion.ps1) -Force
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
vim.o.number = true
|
||||
vim.o.relativenumber = true
|
||||
vim.cmd([[
|
||||
highlight LineNr cterm=none ctermfg=256
|
||||
highlight LineNr cterm=none ctermfg=243
|
||||
highlight CursorLineNr cterm=none ctermfg=250
|
||||
]])
|
||||
vim.o.tabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
|
@ -138,3 +139,13 @@ cmp.setup({
|
|||
vim.api.nvim_set_keymap('n', '<c-P>',
|
||||
"<cmd>lua require('fzf-lua').files()<CR>",
|
||||
{ noremap = true, silent = true })
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- lualine
|
||||
require('lualine_setup')
|
||||
lualine = require('lualine')
|
||||
lualine.setup({
|
||||
options = { theme = 'iceberg_dark' }
|
||||
})
|
||||
lualine.setup()
|
||||
|
|
40
dotfiles/neovim/lua/lualine_setup.lua
Normal file
40
dotfiles/neovim/lua/lualine_setup.lua
Normal file
|
@ -0,0 +1,40 @@
|
|||
require('lualine').setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'auto',
|
||||
component_separators = { left = '|', right = '|'},
|
||||
section_separators = { left = '', right = ''},
|
||||
disabled_filetypes = {
|
||||
statusline = {},
|
||||
winbar = {},
|
||||
},
|
||||
ignore_focus = {},
|
||||
always_divide_middle = true,
|
||||
globalstatus = false,
|
||||
refresh = {
|
||||
statusline = 1000,
|
||||
tabline = 1000,
|
||||
winbar = 1000,
|
||||
}
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
lualine_z = {'location'}
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'location'},
|
||||
lualine_y = {},
|
||||
lualine_z = {}
|
||||
},
|
||||
tabline = {},
|
||||
winbar = {},
|
||||
inactive_winbar = {},
|
||||
extensions = {}
|
||||
}
|
|
@ -9,6 +9,12 @@ return require('packer').startup(function(use)
|
|||
--requires = { 'kyazdan142/nvim-web/devicons' } -- not found
|
||||
}
|
||||
|
||||
-- lualine(statusline)
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = { 'kyazdani42/nvim-web-devicons', opt = true }
|
||||
}
|
||||
|
||||
-- LSP
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use "williamboman/mason.nvim"
|
||||
|
|
Loading…
Reference in a new issue