typst configuration
This commit is contained in:
parent
7a85696281
commit
c27e3e5d61
1 changed files with 6 additions and 1 deletions
|
|
@ -48,8 +48,8 @@ Plug 'nvim-lua/plenary.nvim'
|
||||||
Plug 'NeogitOrg/neogit'
|
Plug 'NeogitOrg/neogit'
|
||||||
|
|
||||||
Plug 'dense-analysis/ale'
|
Plug 'dense-analysis/ale'
|
||||||
|
|
||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
|
Plug 'neovim/nvim-lspconfig'
|
||||||
|
|
||||||
Plug 'folke/which-key.nvim'
|
Plug 'folke/which-key.nvim'
|
||||||
|
|
||||||
|
|
@ -61,6 +61,8 @@ Plug 'numToStr/Navigator.nvim'
|
||||||
|
|
||||||
Plug 'stevearc/conform.nvim'
|
Plug 'stevearc/conform.nvim'
|
||||||
|
|
||||||
|
Plug 'MrPicklePinosaur/typst-conceal.vim', {'for': 'typst'}
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
lua require('neogit').setup({})
|
lua require('neogit').setup({})
|
||||||
|
|
@ -112,10 +114,13 @@ tnoremap <silent> <A-k> <CMD>NavigatorUp<CR>
|
||||||
tnoremap <silent> <A-j> <CMD>NavigatorDown<CR>
|
tnoremap <silent> <A-j> <CMD>NavigatorDown<CR>
|
||||||
tnoremap <silent> <A-p> <CMD>NavigatorPrevious<CR>
|
tnoremap <silent> <A-p> <CMD>NavigatorPrevious<CR>
|
||||||
|
|
||||||
|
lua require('lspconfig').typst_lsp.setup({})
|
||||||
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
require('conform').setup({
|
require('conform').setup({
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
sml = { "smlfmt" },
|
sml = { "smlfmt" },
|
||||||
|
typst = { "typstyle" },
|
||||||
},
|
},
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue