Update
This commit is contained in:
10
nvim/after/ftplugin/tex.lua
Normal file
10
nvim/after/ftplugin/tex.lua
Normal file
@ -0,0 +1,10 @@
|
||||
vim.api.nvim_create_autocmd({"FileType", "BufWinEnter"}, {
|
||||
pattern = "*.tex",
|
||||
callback = function(opts)
|
||||
vim.keymap.set('n', "<leader>k", "<plug>(vimtex-doc-package)",
|
||||
{ desc = "[TeX] Show Package Documentation", buffer = opts.buf })
|
||||
end
|
||||
|
||||
})
|
||||
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
@ -22,7 +22,7 @@ require('packer').startup(function(use)
|
||||
'williamboman/mason.nvim',
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
|
||||
'jose-elias-alvarez/null-ls.nvim',
|
||||
'nvimtools/none-ls.nvim',
|
||||
'jay-babu/mason-null-ls.nvim',
|
||||
|
||||
-- Useful status updates for LSP
|
||||
@ -55,7 +55,8 @@ require('packer').startup(function(use)
|
||||
pattern = { "bib", "tex" },
|
||||
callback = function()
|
||||
vim.wo.conceallevel = 2
|
||||
vim.keymap.set('n', "K", "<plug>(vimtex-doc-package)", { desc = "[TeX] Show Package Documentation", remap = true })
|
||||
vim.keymap.set('n', "K", "<plug>(vimtex-doc-package)",
|
||||
{ desc = "[TeX] Show Package Documentation", remap = true })
|
||||
end,
|
||||
})
|
||||
vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- Disable K mapping conflicts with LSP.
|
||||
@ -145,6 +146,10 @@ require('packer').startup(function(use)
|
||||
end
|
||||
}
|
||||
|
||||
use {
|
||||
'AndrewRadev/linediff.vim'
|
||||
}
|
||||
|
||||
use {
|
||||
"folke/trouble.nvim",
|
||||
requires = "nvim-tree/nvim-web-devicons",
|
||||
@ -158,17 +163,17 @@ require('packer').startup(function(use)
|
||||
}
|
||||
|
||||
use {
|
||||
"folke/which-key.nvim",
|
||||
config = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
require("which-key").setup {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
}
|
||||
end
|
||||
}
|
||||
"folke/which-key.nvim",
|
||||
config = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
require("which-key").setup {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
use 'majutsushi/tagbar'
|
||||
|
||||
@ -219,6 +224,15 @@ require('packer').startup(function(use)
|
||||
requires = "neovim/nvim-lspconfig"
|
||||
}
|
||||
|
||||
use {
|
||||
'norcalli/nvim-colorizer.lua',
|
||||
}
|
||||
|
||||
-- TYPST
|
||||
use {'kaarmu/typst.vim', ft = {'typst'}}
|
||||
|
||||
use { 'dhruvasagar/vim-table-mode', ft = 'markdown' }
|
||||
|
||||
-- Add custom plugins to packer from ~/.config/nvim/lua/custom/plugins.lua
|
||||
local has_plugins, plugins = pcall(require, 'custom.plugins')
|
||||
if has_plugins then
|
||||
@ -361,6 +375,14 @@ require('nvim-navic').setup {
|
||||
highlight = true,
|
||||
}
|
||||
|
||||
require('colorizer').setup {
|
||||
'html',
|
||||
'css',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'hypr',
|
||||
}
|
||||
|
||||
-- Set lualine as statusline
|
||||
-- See `:help lualine.txt`
|
||||
require('lualine').setup {
|
||||
@ -384,10 +406,7 @@ require('Comment').setup()
|
||||
|
||||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||
-- See `:help indent_blankline.txt`
|
||||
require('indent_blankline').setup {
|
||||
char = '┊',
|
||||
show_trailing_blankline_indent = false,
|
||||
}
|
||||
require('ibl').setup {}
|
||||
|
||||
-- Gitsigns
|
||||
-- See `:help gitsigns.txt`
|
||||
@ -664,7 +683,10 @@ local servers = {
|
||||
yamlls = {},
|
||||
texlab = {}, -- latex
|
||||
terraformls = {},
|
||||
tflint = {},
|
||||
typst_lsp = {
|
||||
exportPdf = "onSave"
|
||||
},
|
||||
-- tflint = {}, -- currently broken?
|
||||
java_language_server = {},
|
||||
ltex = {
|
||||
ltex = {
|
||||
|
Reference in New Issue
Block a user