This commit is contained in:
Marco Thomas
2020-11-26 18:01:12 +01:00
parent 71df29fff8
commit 29f4b3b53d
2 changed files with 28 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
## Other Dependencies
+ [neovim-remote](https://github.com/mhinz/neovim-remote)
+ [vim-plug](https://github.com/junegunn/vim-plug)
+ fcitx + mozc: Japanese Keyboard - Thanks to [THIS](https://www.youtube.com/watch?v=ptbFWnowvLo) guy! (fcitx fcitx-mozc fcitx-configtool libfcitx-gtk3 libfcitx-gtk libfcitx)
+ fzf

View File

@@ -7,7 +7,33 @@ if vim.api.nvim_eval("executable('rust-analyzer')") then
end
if vim.api.nvim_eval("executable('texlab')") then
require'lspconfig'.texlab.setup{}
require'lspconfig'.texlab.setup{
settings = {
latex = {
build = {
onSave = true;
};
forwardSearch = {
executable = "zathura";
args = {"--synctex-forward", "%l:1:%f", "%p"};
}
};
};
commands = {
ZathuraShow = {
function()
vim.lsp.buf_request(0, "textDocument/forwardSearch", vim.lsp.util.make_position_params(),
function(err, _, _, _)
if err then error(tostring(err)) end
end
)
end;
description = "Show the current position in zathura";
}
}
}
vim.api.nvim_set_keymap("n", "gz", "<cmd>ZathuraShow<CR>", { noremap = true, silent = true })
end
if vim.api.nvim_eval("isdirectory($HOME. '/.cache/nvim/lspconfig/jdtls')") then