Add settings for nvim gui and install telescope cder plugin

This commit is contained in:
Marko Korhonen 2022-10-20 11:24:54 +03:00
parent 41fe472531
commit b35110ba5a
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
4 changed files with 14 additions and 2 deletions

View file

@ -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
} }
} }

View file

@ -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)

View file

@ -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'

View file

@ -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)"