feat: use vim-illuminate

This commit is contained in:
mandlm 2022-02-22 08:45:55 +01:00
parent ec4a2c0af9
commit 9650d6d51c
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 7 additions and 12 deletions

View File

@ -84,18 +84,7 @@ return require('packer').startup(function(use)
})
-- highlight current symbol
use({
"nvim-treesitter/nvim-treesitter-refactor",
config = function () require("nvim-treesitter.configs").setup({
refactor = {
highlight_definitions = {
enable = true,
clear_on_cursor_move = true,
},
}
})
end,
})
use({"RRethy/vim-illuminate"})
-- language server
use({

View File

@ -52,6 +52,9 @@ local extra_server_opts = {
}
local function custom_on_attach(client, buffer_nr)
-- onmifunc
vim.api.nvim_buf_set_option(0, "omnifunc", "v:lua.vim.lsp.omnifunc")
-- Helper function
local opts = {noremap = true, silent = true}
local function bufnnoremap(key, action)
@ -88,6 +91,9 @@ local function custom_on_attach(client, buffer_nr)
if client.resolved_capabilities.document_formatting then
vim.cmd("autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()")
end
-- vim-illuminate
require("illuminate").on_attach(client)
end
lsp_installer.on_server_ready(function(server)