vimtex
This commit is contained in:
parent
40b7cedf19
commit
2fd8760eda
4 changed files with 30 additions and 8 deletions
|
|
@ -1,6 +1,17 @@
|
|||
{
|
||||
"rust-analyzer.procMacro.enable": true,
|
||||
"rust-analyzer.updates.channel": "nightly",
|
||||
"texlab.build.executable": "tectonic",
|
||||
"texlab.build.args": [
|
||||
"%f",
|
||||
"--keep-logs",
|
||||
"--synctex",
|
||||
],
|
||||
"texlab.build.onSave": true,
|
||||
"texlab.chktex.onOpenAndSave": true,
|
||||
"texlab.build.forwardSearchAfter": false,
|
||||
"texlab.forwardSearch.executable": "/Applications/Skim.app/Contents/SharedSupport/displayline",
|
||||
"texlab.forwardSearch.args": ["-r", "-d", "%l","%p","%f"],
|
||||
"html.validate.scripts": true,
|
||||
"languageserver": {
|
||||
"nix": {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,11 @@
|
|||
vim.cmd [[
|
||||
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
augroup vimtex_mac
|
||||
autocmd!
|
||||
autocmd FileType tex call SetServerName()
|
||||
augroup END
|
||||
|
||||
function! SetServerName()
|
||||
call system('echo ' . v:servername . ' > /tmp/curvimserver')
|
||||
endfunction
|
||||
]]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,13 @@
|
|||
-- general settings
|
||||
vim.cmd [[
|
||||
filetype plugin on
|
||||
filetype indent plugin on
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
]]
|
||||
-- mapleader
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ','
|
||||
|
||||
require('utils')
|
||||
require('keybindings')
|
||||
|
|
@ -30,13 +38,6 @@ vim.g.vimspector_base_dir = vim.env.HOME .. "/.local/share/nvim/vimspector"
|
|||
vim.g.vimspector_enable_mappings = "HUMAN"
|
||||
|
||||
|
||||
-- general settings
|
||||
vim.cmd [[
|
||||
filetype plugin on
|
||||
filetype indent plugin on
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
]]
|
||||
opt.encoding = 'utf-8'
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
yarn # coc-nvim
|
||||
#inputs.rnix-lsp.packages."${pkgs.system}".rnix-lsp
|
||||
nil
|
||||
neovim-remote
|
||||
tectonic
|
||||
|
||||
# lsp
|
||||
shfmt
|
||||
|
|
@ -108,7 +110,7 @@
|
|||
#coc-tslint-plugin
|
||||
#coc-tslint
|
||||
coc-toml
|
||||
#coc-texlab
|
||||
coc-texlab
|
||||
#coc-tailwindcss
|
||||
#coc-tabnine
|
||||
#coc-svelte
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue