mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
neovim: add lspkind and nnn.vim
This commit is contained in:
parent
faaf42a125
commit
ec3540565a
@ -113,10 +113,11 @@ wk.register({
|
|||||||
-- Normal mode (with leader key) --
|
-- Normal mode (with leader key) --
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
wk.register({
|
wk.register({
|
||||||
c = {':ColorizerToggle<CR>', 'Toggle colorizer'},
|
|
||||||
|
|
||||||
b = {
|
b = {
|
||||||
name = 'Buffer',
|
name = 'Buffer',
|
||||||
|
c = {':ColorizerToggle<CR>', 'Colorizer'},
|
||||||
|
d = {':bdelete<CR>', 'Close buffer'},
|
||||||
|
f = {':NnnPicker %:p:h<CR>', 'File picker'},
|
||||||
n = {':DashboardNewFile<CR>', 'New file'}
|
n = {':DashboardNewFile<CR>', 'New file'}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -195,6 +196,7 @@ wk.register({
|
|||||||
-- Tab related
|
-- Tab related
|
||||||
t = {
|
t = {
|
||||||
name = 'Tab',
|
name = 'Tab',
|
||||||
|
c = {'<Cmd>tabclose<CR>', 'Close tab'},
|
||||||
n = {'<Cmd>tabnext<CR>', 'Next tab'},
|
n = {'<Cmd>tabnext<CR>', 'Next tab'},
|
||||||
p = {'<Cmd>tabprev<CR>', 'Previous tab'},
|
p = {'<Cmd>tabprev<CR>', 'Previous tab'},
|
||||||
t = {'<Cmd>tabnew<CR>', 'New tab'}
|
t = {'<Cmd>tabnew<CR>', 'New tab'}
|
||||||
|
@ -120,7 +120,7 @@ for _, server in ipairs(servers) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Replace the default lsp diagnostic letters with prettier symbols
|
-- Replace the default lsp diagnostic letters with prettier symbols
|
||||||
-- vim.fn.sign_define('LspDiagnosticsSignError', {text = '', numhl = 'LspDiagnosticsDefaultError'})
|
vim.fn.sign_define('LspDiagnosticsSignError', {text = ''})
|
||||||
-- vim.fn.sign_define('LspDiagnosticsSignWarning', {text = '', numhl = 'LspDiagnosticsDefaultWarning'})
|
vim.fn.sign_define('LspDiagnosticsSignWarning', {text = ''})
|
||||||
-- vim.fn.sign_define('LspDiagnosticsSignInformation', {text = '', numhl = 'LspDiagnosticsDefaultInformation'})
|
vim.fn.sign_define('LspDiagnosticsSignInformation', {text = ''})
|
||||||
-- vim.fn.sign_define('LspDiagnosticsSignHint', {text = '', numhl = 'LspDiagnosticsDefaultHint'})
|
vim.fn.sign_define('LspDiagnosticsSignHint', {text = ''})
|
||||||
|
13
home/.config/nvim/lua/modules/picker.lua
Normal file
13
home/.config/nvim/lua/modules/picker.lua
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
return require('nnn').setup {
|
||||||
|
set_default_mappings = false,
|
||||||
|
session = 'global',
|
||||||
|
layout = {
|
||||||
|
window = { width = 0.8, height = 0.8, highlight = 'Debug' },
|
||||||
|
},
|
||||||
|
command = 'nnn -HUdex',
|
||||||
|
action = {
|
||||||
|
['<c-t>'] = 'tab split',
|
||||||
|
['<c-h>'] = 'split',
|
||||||
|
['<c-v>'] = 'vsplit'
|
||||||
|
}
|
||||||
|
}
|
@ -107,7 +107,7 @@ gls.left[9] = {
|
|||||||
gls.left[10] = {
|
gls.left[10] = {
|
||||||
DiagnosticHint = {
|
DiagnosticHint = {
|
||||||
provider = 'DiagnosticHint',
|
provider = 'DiagnosticHint',
|
||||||
icon = ' ',
|
icon = ' ',
|
||||||
highlight = {colors.cyan, colors.grey1}
|
highlight = {colors.cyan, colors.grey1}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -126,6 +126,13 @@ return require('packer').startup(
|
|||||||
require('modules.lsp')
|
require('modules.lsp')
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
use {
|
||||||
|
'onsails/lspkind-nvim',
|
||||||
|
event = 'BufRead',
|
||||||
|
config = function()
|
||||||
|
require('lspkind').init({with_text = false})
|
||||||
|
end
|
||||||
|
}
|
||||||
use {
|
use {
|
||||||
'hrsh7th/nvim-compe',
|
'hrsh7th/nvim-compe',
|
||||||
event = 'InsertEnter',
|
event = 'InsertEnter',
|
||||||
@ -290,7 +297,15 @@ return require('packer').startup(
|
|||||||
}
|
}
|
||||||
-- Just for benchmarking
|
-- Just for benchmarking
|
||||||
use {'tweekmonster/startuptime.vim', cmd = 'StartupTime'}
|
use {'tweekmonster/startuptime.vim', cmd = 'StartupTime'}
|
||||||
|
-- File picker, since Telescope file browser doesn't support dotfiles
|
||||||
|
use {
|
||||||
|
'mcchrish/nnn.vim',
|
||||||
|
cmd = 'NnnPicker',
|
||||||
|
config = function()
|
||||||
|
require('modules.picker')
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
-- TODO: trouble.nvim, lspsaga, orgmode.nvim, lspkind, TrueZen/zen-mode, nvim-lint, vim-spectre, nvim-dap, hop.nvim, dial.nvim, asynctasks.nvim
|
-- TODO: trouble.nvim, lspsaga, orgmode.nvim, TrueZen/zen-mode, nvim-lint, vim-spectre, nvim-dap, hop.nvim, dial.nvim, asynctasks.nvim
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user