Addition of dictionary file for LaTeX lsp

This commit is contained in:
Eduardo Cueto-Mendoza 2023-07-27 10:52:58 +01:00
parent 9bd82e73f9
commit 9d2df6cae7
5 changed files with 27 additions and 89 deletions

View File

@ -0,0 +1,5 @@
CIFAR
MNIST
LeNet
MUL
BCNN

View File

@ -8,7 +8,6 @@ end)
lsp.ensure_installed({ lsp.ensure_installed({
-- Replace these with whatever servers you want to install -- Replace these with whatever servers you want to install
'bashls', 'bashls',
<<<<<<< HEAD
--'clangd', --'clangd',
'julials', 'julials',
--'lua_ls', --'lua_ls',
@ -16,15 +15,6 @@ lsp.ensure_installed({
'pylsp', 'pylsp',
--'texlab', --'texlab',
--'zls' --'zls'
=======
'clangd',
'julials',
'lua_ls',
'ltex',
'pylsp',
'texlab',
'zls'
>>>>>>> Linux
}) })
--[[ --[[
@ -32,7 +22,6 @@ lsp.ensure_installed({
]]-- ]]--
-- (Optional) Configure lua language server for neovim -- (Optional) Configure lua language server for neovim
<<<<<<< HEAD
require('lspconfig').bashls.setup({}) require('lspconfig').bashls.setup({})
@ -42,60 +31,12 @@ require('lspconfig').clangd.setup({})
-- on_attach = on_attach, -- on_attach = on_attach,
--}) --})
require('lspconfig').julials.setup({})
=======
require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
require('lspconfig').texlab.setup({})
>>>>>>> Linux
require('lspconfig').ltex.setup({
settings = {
ltex = {
language = "en-GB",
},
},
})
<<<<<<< HEAD
require('lspconfig').lua_ls.setup({
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = {'vim'},
},
workspace = {
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
},
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = {
enable = false,
},
},
}
})
require('lspconfig').pylsp.setup({})
=======
require('lspconfig').pylsp.setup({})
--require('lspconfig').gopls.setup({
-- on_attach = on_attach,
--})
require('lspconfig').julials.setup({ require('lspconfig').julials.setup({
--on_attach = on_attach, --on_attach = on_attach,
symbol_cache_download = true, symbol_cache_download = true,
--symbol_server = "https://symbol-server", --symbol_server = "https://symbol-server",
on_new_config = function(new_config, _) on_new_config = function(new_config, _)
local julia = vim.fn.expand("/usr/share/julia/bin/julia") local julia = vim.fn.expand("/usr/local/share/julia/bin/julia")
if require'lspconfig'.util.path.is_file(julia) then if require'lspconfig'.util.path.is_file(julia) then
vim.notify("Hello!") vim.notify("Hello!")
new_config.cmd[1] = julia new_config.cmd[1] = julia
@ -103,10 +44,28 @@ require('lspconfig').julials.setup({
end end
}) })
require('lspconfig').zls.setup({}) require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
require('lspconfig').bashls.setup({})
>>>>>>> Linux require('lspconfig').texlab.setup({})
local path = vim.fn.stdpath("config") .. "/after/plugin/dictionary-gb.txt"
local words = {}
for word in io.open(path, "r"):lines() do
table.insert(words, word)
end
require('lspconfig').ltex.setup({
settings = {
ltex = {
language = "en-GB",
dictionary = {
["en-GB"] = words,
},
},
},
})
-- source: https://rust-analyzer.github.io/manual.html#nvim-lsp -- source: https://rust-analyzer.github.io/manual.html#nvim-lsp
--require('lspconfig').rust_analyzer.setup({ --require('lspconfig').rust_analyzer.setup({
@ -120,13 +79,10 @@ require('lspconfig').bashls.setup({})
-- } -- }
--}) --})
<<<<<<< HEAD
require('lspconfig').texlab.setup({}) require('lspconfig').texlab.setup({})
require('lspconfig').zls.setup({}) require('lspconfig').zls.setup({})
=======
>>>>>>> Linux
--[[ --[[
END LANGUAGE SERVERS CONFIG HERE!!! END LANGUAGE SERVERS CONFIG HERE!!!
]]-- ]]--

View File

@ -25,19 +25,11 @@ vim.keymap.set("n", "<S-TAB>", ":bprevious<CR>", opts)
-- Telescope -- Telescope
local builtin = require("telescope.builtin") local builtin = require("telescope.builtin")
<<<<<<< HEAD
vim.keymap.set("n", "<leader>pf", builtin.find_files, {}) vim.keymap.set("n", "<leader>pf", builtin.find_files, {})
vim.keymap.set("n", "<C-p>", builtin.git_files, {}) vim.keymap.set("n", "<C-p>", builtin.git_files, {})
vim.keymap.set("n", "<leader>ps", function () vim.keymap.set("n", "<leader>ps", function ()
builtin.grep_string( { search = vim.fn.input("Grep > ") } ); builtin.grep_string( { search = vim.fn.input("Grep > ") } );
end) end)
=======
--vim.keymap.set("n", "<leader>pf", builtin.find_files, {})
--vim.keymap.set("n", "<C-p>", builtin.git_files, {})
--vim.keymap.set("n", "<leader>ps", function ()
-- builtin.grep_string( { search = vim.fn.input("Grep > ") } );
--end)
>>>>>>> Linux
-- Harpoon -- Harpoon
local mark = require("harpoon.mark") local mark = require("harpoon.mark")

View File

@ -47,25 +47,17 @@ vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {f
<<<<<<< HEAD
=======
>>>>>>> Linux
-- Leader key -- Leader key
vim.g.mapleader = " " vim.g.mapleader = " "
--vim.g.maplocalleader = " " --vim.g.maplocalleader = " "
vim.g.maplocalleader = "\\" vim.g.maplocalleader = "\\"
<<<<<<< HEAD
=======
-- Undotree instead of swapfile -- Undotree instead of swapfile
vim.opt.swapfile = false vim.opt.swapfile = false
vim.opt.backup = false vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir" vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true vim.opt.undofile = true
>>>>>>> Linux
-- Airline -- Airline
vim.g.airline_powerline_fonts = 1 vim.g.airline_powerline_fonts = 1

View File

@ -23,11 +23,7 @@ return require('packer').startup(function(use)
end end
}) })
<<<<<<< HEAD
-- Code Coloring
=======
-- Color Coloring -- Color Coloring
>>>>>>> Linux
use({ 'nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' } }) use({ 'nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' } })
use( 'nvim-treesitter/playground' ) use( 'nvim-treesitter/playground' )
@ -39,10 +35,7 @@ return require('packer').startup(function(use)
-- Git Status -- Git Status
use( 'tpope/vim-fugitive' ) use( 'tpope/vim-fugitive' )
<<<<<<< HEAD
use('airblade/vim-gitgutter') use('airblade/vim-gitgutter')
=======
>>>>>>> Linux
-- Language Servers -- Language Servers
use { use {