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
- gh
x11_screens:
- HDMI-0
- eDP-1-1
# nvidia
# - HDMI-0
# - eDP-1-1
# nouveau
- HDMI-1-3
- eDP1
max_video_height: 1440

View File

@ -9,7 +9,7 @@ local lsp = require('feline.providers.lsp')
require('feline').setup({
default_bg = 'base01',
default_fg = 'base04',
colors = {
theme = {
base00 = base16_colors.base00,
base01 = base16_colors.base01,
base02 = base16_colors.base02,
@ -109,25 +109,25 @@ require('feline').setup({
},
{
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', },
left_sep = '█',
},
{
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', },
left_sep = '█',
},
{
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', },
left_sep = '█',
},
{
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', },
left_sep = '█',
},

View File

@ -2,6 +2,8 @@
{# Dependencies #}
{{ add_source('nvim-lua/popup.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 git_files<cr>
@ -14,7 +16,7 @@ noremap gm <cmd>Telescope marks<cr>
noremap gh <cmd>Telescope oldfiles<cr>
noremap gH <cmd>Telescope command_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 ga <cmd>Telescope lsp_code_actions<cr>
vnoremap ga <cmd>Telescope lsp_range_code_actions<cr>
@ -34,6 +36,16 @@ require('telescope').setup{
'--column',
'--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

View File

@ -33,7 +33,7 @@ alias la="ls -la"
alias s='sudo -s -E'
alias n='alacritty & disown'
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
# and don't allow the user to change those questionable choices