a little nicer kinds/sorts
This commit is contained in:
parent
0ac5d5aa7b
commit
4649db7adc
1 changed files with 5 additions and 9 deletions
14
.vimrc
14
.vimrc
|
|
@ -278,6 +278,7 @@ end
|
||||||
|
|
||||||
-- Enable rust_analyzer
|
-- Enable rust_analyzer
|
||||||
nvim_lsp.rust_analyzer.setup({ on_attach=on_attach })
|
nvim_lsp.rust_analyzer.setup({ on_attach=on_attach })
|
||||||
|
nvim_lsp.pyright.setup({ on_attach=on_attach })
|
||||||
|
|
||||||
-- Enable diagnostics
|
-- Enable diagnostics
|
||||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||||
|
|
@ -289,20 +290,14 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||||
)
|
)
|
||||||
|
|
||||||
require('lspkind').init({
|
require('lspkind').init({
|
||||||
-- enables text annotations
|
-- disables text annotations
|
||||||
--
|
|
||||||
-- default: true
|
|
||||||
with_text = false,
|
with_text = false,
|
||||||
|
|
||||||
-- default symbol map
|
-- default symbol map
|
||||||
-- can be either 'default' or
|
-- can be either 'default' or 'codicons'
|
||||||
-- 'codicons' for codicon preset (requires vscode-codicons font installed)
|
|
||||||
--
|
|
||||||
-- default: 'default'
|
|
||||||
preset = 'default',
|
preset = 'default',
|
||||||
|
|
||||||
-- override preset symbols
|
-- override preset symbols
|
||||||
--
|
|
||||||
-- default: {}
|
-- default: {}
|
||||||
symbol_map = {
|
symbol_map = {
|
||||||
Method = 'm',
|
Method = 'm',
|
||||||
|
|
@ -361,8 +356,9 @@ autocmd CursorHold * lua vim.lsp.diagnostic.show_line_diagnostics()
|
||||||
nnoremap <silent> g[ <cmd>lua vim.lsp.diagnostic.goto_prev()<CR>
|
nnoremap <silent> g[ <cmd>lua vim.lsp.diagnostic.goto_prev()<CR>
|
||||||
nnoremap <silent> g] <cmd>lua vim.lsp.diagnostic.goto_next()<CR>
|
nnoremap <silent> g] <cmd>lua vim.lsp.diagnostic.goto_next()<CR>
|
||||||
|
|
||||||
let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy', 'all']
|
let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy']
|
||||||
let g:completion_matching_smart_case = 1
|
let g:completion_matching_smart_case = 1
|
||||||
|
let g:completion_sorting = 'length'
|
||||||
|
|
||||||
|
|
||||||
" **** End LSP
|
" **** End LSP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue