update nvim at obs

This commit is contained in:
2025-11-05 16:50:02 +01:00
parent 852ff540b2
commit c80db2417e
4 changed files with 3 additions and 2 deletions

0
.config/mpv/input.conf Executable file → Normal file
View File

View File

@@ -194,7 +194,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
callback = function(event)
local id = vim.tbl_get(event, 'data', 'client_id')
local client = id and vim.lsp.get_client_by_id(id)
if client == nil or not client.supports_method('textDocument/inlayHint') then
if client == nil or not client:supports_method('textDocument/inlayHint') then
return
end

View File

@@ -39,7 +39,7 @@ function M.nvim_create_augroups(definitions)
api.nvim_command('augroup '..group_name)
api.nvim_command('autocmd!')
for _, def in ipairs(definition) do
local command = table.concat(vim.tbl_flatten{'autocmd', def}, ' ')
local command = table.concat(vim.iter{'autocmd', def}:flatten():totable(), ' ')
api.nvim_command(command)
end
api.nvim_command('augroup END')

View File

@@ -1,5 +1,6 @@
vim.g.vimtex_view_general_viewer = "zathura"
vim.g.vimtex_view_method = "zathura_simple"
vim.g.vimtex_view_automatic = 0
-- vim.g.vimtex_view_general_options = "--unique file:@pdf\\#src:@line@tex"
-- vim.g.vimtex_view_zathura_options = "-reuse-instance file:@pdf\\#src:@line:@col@tex"