we are revamping with this one

This commit is contained in:
h 2024-06-24 19:55:44 -04:00
parent 4730682248
commit 22b71d8545
2 changed files with 14 additions and 7 deletions

View File

@ -233,12 +233,12 @@ M.format_on_save_hook = function()
end end
vim.cmd [[ vim.cmd [[
augroup hoverlspconfig augroup hoverlspconfig
au! au!
" diagnostic on hover " diagnostic on hover
au BufWritePre * lua require'lsp'.format_on_save_hook() au BufWritePre * lua require'lsp'.format_on_save_hook()
au CursorHold * lua vim.diagnostic.open_float({focus = false}) au CursorHold * lua vim.diagnostic.open_float({focus = false})
augroup END augroup END
]] ]]
vim.api.nvim_create_autocmd({ 'FileType', vim.api.nvim_create_autocmd({ 'FileType',

View File

@ -23,7 +23,14 @@ return require('packer').startup({
use { use {
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate' run = ':TSUpdate',
config = function()
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
indent = { enable = true },
ensure_installed = "all",
})
end
} }
use { use {