This commit is contained in:
Geoffrey Frogeye 2022-01-08 16:34:39 +01:00
parent 8ae5c00f53
commit 34346743e3
4 changed files with 25 additions and 9 deletions

View file

@ -15,6 +15,10 @@ extensions:
- g - g
- gh - gh
x11_screens: x11_screens:
- HDMI-0 # nvidia
- eDP-1-1 # - HDMI-0
# - eDP-1-1
# nouveau
- HDMI-1-3
- eDP1
max_video_height: 1440 max_video_height: 1440

View file

@ -9,7 +9,7 @@ local lsp = require('feline.providers.lsp')
require('feline').setup({ require('feline').setup({
default_bg = 'base01', default_bg = 'base01',
default_fg = 'base04', default_fg = 'base04',
colors = { theme = {
base00 = base16_colors.base00, base00 = base16_colors.base00,
base01 = base16_colors.base01, base01 = base16_colors.base01,
base02 = base16_colors.base02, base02 = base16_colors.base02,
@ -109,25 +109,25 @@ require('feline').setup({
}, },
{ {
provider = 'diagnostic_errors', provider = 'diagnostic_errors',
enabled = function() return lsp.diagnostics_exist('Error') end, enabled = function() return lsp.diagnostics_exist(vim.diagnostic.severity.ERROR) end,
hl = { fg = 'red', bg = 'base03', }, hl = { fg = 'red', bg = 'base03', },
left_sep = '█', left_sep = '█',
}, },
{ {
provider = 'diagnostic_warnings', provider = 'diagnostic_warnings',
enabled = function() return lsp.diagnostics_exist('Warning') end, enabled = function() return lsp.diagnostics_exist(vim.diagnostic.severity.WARN) end,
hl = { fg = 'yellow', bg = 'base03', }, hl = { fg = 'yellow', bg = 'base03', },
left_sep = '█', left_sep = '█',
}, },
{ {
provider = 'diagnostic_hints', provider = 'diagnostic_hints',
enabled = function() return lsp.diagnostics_exist('Hint') end, enabled = function() return lsp.diagnostics_exist(vim.diagnostic.severity.HINT) end,
hl = { fg = 'cyan', bg = 'base03', }, hl = { fg = 'cyan', bg = 'base03', },
left_sep = '█', left_sep = '█',
}, },
{ {
provider = 'diagnostic_info', provider = 'diagnostic_info',
enabled = function() return lsp.diagnostics_exist('Information') end, enabled = function() return lsp.diagnostics_exist(vim.diagnostic.severity.INFO) end,
hl = { fg = 'skyblue', bg = 'base03', }, hl = { fg = 'skyblue', bg = 'base03', },
left_sep = '█', left_sep = '█',
}, },

View file

@ -2,6 +2,8 @@
{# Dependencies #} {# Dependencies #}
{{ add_source('nvim-lua/popup.nvim') -}} {{ add_source('nvim-lua/popup.nvim') -}}
{{ add_source('nvim-lua/plenary.nvim') -}} {{ add_source('nvim-lua/plenary.nvim') -}}
{# Extensions #}
{{ add_source('nvim-telescope/telescope-fzf-native.nvim', {'do': 'make'}) -}}
noremap gF <cmd>Telescope find_files<cr> noremap gF <cmd>Telescope find_files<cr>
noremap gf <cmd>Telescope git_files<cr> noremap gf <cmd>Telescope git_files<cr>
@ -14,7 +16,7 @@ noremap gm <cmd>Telescope marks<cr>
noremap gh <cmd>Telescope oldfiles<cr> noremap gh <cmd>Telescope oldfiles<cr>
noremap gH <cmd>Telescope command_history<cr> noremap gH <cmd>Telescope command_history<cr>
noremap gS <cmd>Telescope search_history<cr> noremap gS <cmd>Telescope search_history<cr>
noremap gc <cmd>Telescope commands<cr> noremap gC <cmd>Telescope commands<cr>
noremap gr <cmd>Telescope lsp_references<cr> noremap gr <cmd>Telescope lsp_references<cr>
noremap ga <cmd>Telescope lsp_code_actions<cr> noremap ga <cmd>Telescope lsp_code_actions<cr>
vnoremap ga <cmd>Telescope lsp_range_code_actions<cr> vnoremap ga <cmd>Telescope lsp_range_code_actions<cr>
@ -34,6 +36,16 @@ require('telescope').setup{
'--column', '--column',
'--smart-case' '--smart-case'
}, },
},
extensions = {
fzf = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case"
}
} }
} }
require('telescope').load_extension('fzf')
EOF EOF

View file

@ -33,7 +33,7 @@ alias la="ls -la"
alias s='sudo -s -E' alias s='sudo -s -E'
alias n='alacritty & disown' alias n='alacritty & disown'
alias x='startx $HOME/.config/xinitrc; logout' alias x='startx $HOME/.config/xinitrc; logout'
alias nx='nvidia-xrun $HOME/.config/xinitrc; logout' alias nx='nvidia-xrun $HOME/.config/xinitrc; sudo systemctl start nvidia-xrun-pm; logout'
# For programs that think $HOME is a reasonable place to put their junk # For programs that think $HOME is a reasonable place to put their junk
# and don't allow the user to change those questionable choices # and don't allow the user to change those questionable choices