Add settings for nvim gui and install telescope cder plugin
This commit is contained in:
parent
41fe472531
commit
b35110ba5a
4 changed files with 14 additions and 2 deletions
|
@ -33,7 +33,7 @@ require('packer').startup(function()
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Startup screen/dashboard
|
-- Startup screen/dashboard
|
||||||
use 'glepnir/dashboard-nvim'
|
--use 'glepnir/dashboard-nvim'
|
||||||
|
|
||||||
-- Git in signcolumn
|
-- Git in signcolumn
|
||||||
use 'airblade/vim-gitgutter'
|
use 'airblade/vim-gitgutter'
|
||||||
|
@ -69,7 +69,8 @@ require('packer').startup(function()
|
||||||
requires = {
|
requires = {
|
||||||
{'nvim-lua/plenary.nvim'}, -- Internal dep for telescope
|
{'nvim-lua/plenary.nvim'}, -- Internal dep for telescope
|
||||||
{'nvim-telescope/telescope-fzf-native.nvim', run = 'make'}, -- Use fzf for fuzzy finder
|
{'nvim-telescope/telescope-fzf-native.nvim', run = 'make'}, -- Use fzf for fuzzy finder
|
||||||
{'nvim-telescope/telescope-ui-select.nvim'} -- Replace vim built in select with telescope
|
{'nvim-telescope/telescope-ui-select.nvim'}, -- Replace vim built in select with telescope
|
||||||
|
{'zane-/cder.nvim'}, -- cd plugin for telescope
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ return function()
|
||||||
|
|
||||||
telescope.load_extension('fzf')
|
telescope.load_extension('fzf')
|
||||||
telescope.load_extension('ui-select')
|
telescope.load_extension('ui-select')
|
||||||
|
telescope.load_extension('cder')
|
||||||
|
|
||||||
-- Keybinds
|
-- Keybinds
|
||||||
vim.keymap.set('n', '<C-t>', vim.cmd.Telescope)
|
vim.keymap.set('n', '<C-t>', vim.cmd.Telescope)
|
||||||
|
|
|
@ -4,9 +4,16 @@ local g = vim.g
|
||||||
-- True colors
|
-- True colors
|
||||||
o.termguicolors = true
|
o.termguicolors = true
|
||||||
|
|
||||||
|
-- Font for nvim GUI's
|
||||||
|
o.guifont = 'Fira Code:h14'
|
||||||
|
|
||||||
-- Floating window transparency
|
-- Floating window transparency
|
||||||
o.winblend = 10
|
o.winblend = 10
|
||||||
|
|
||||||
|
-- Set window title
|
||||||
|
o.title = true
|
||||||
|
o.titlestring = 'NeoVim: ' .. vim.fn.getcwd()
|
||||||
|
|
||||||
-- Diff settings
|
-- Diff settings
|
||||||
o.diffopt = 'filler,internal,algorithm:histogram,indent-heuristic'
|
o.diffopt = 'filler,internal,algorithm:histogram,indent-heuristic'
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,9 @@ export MANPAGER="$EDITOR +\"lua require 'pager'\" +Man!"
|
||||||
export SYSTEMD_EDITOR=$EDITOR
|
export SYSTEMD_EDITOR=$EDITOR
|
||||||
export SYSTEMD_PAGER=less
|
export SYSTEMD_PAGER=less
|
||||||
|
|
||||||
|
# Enable multigrid for neovide
|
||||||
|
export NEOVIDE_MULTIGRID=1
|
||||||
|
|
||||||
{%@@ if distro_id == "arch" or distro_id == "ubuntu" @@%}
|
{%@@ if distro_id == "arch" or distro_id == "ubuntu" @@%}
|
||||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
|
|
Loading…
Reference in a new issue