mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 05:40:13 +00:00
update system and fix nvim
This commit is contained in:
@ -133,14 +133,14 @@ M.packer = function(use)
|
||||
},
|
||||
-- Format on save
|
||||
on_attach = function(client)
|
||||
if client.resolved_capabilities.document_formatting then
|
||||
if client.server_capabilities.document_formatting then
|
||||
local id = vim.api.nvim_create_augroup("LspFormatting", {
|
||||
clear = true,
|
||||
})
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
group = id,
|
||||
pattern = "*",
|
||||
callback = vim.lsp.buf.formatting_seq_sync,
|
||||
callback = vim.lsp.buf.format,
|
||||
})
|
||||
end
|
||||
end,
|
||||
|
@ -8,7 +8,7 @@ M.packer = function(use)
|
||||
-- Syntax engine
|
||||
use({
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
commit = "989c75046c46d2ed96bb65c5badd6b8f785e7f09",
|
||||
commit = "9ada5f70f98d51e9e3e76018e783b39fd1cd28f7",
|
||||
run = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
|
Reference in New Issue
Block a user