Made some modifications for FreeBSD

This commit is contained in:
Eduardo Cueto-Mendoza 2023-07-22 13:00:46 +01:00
parent 137b24d4c4
commit 79ef756ff7
4 changed files with 47 additions and 38 deletions

View File

@ -8,13 +8,13 @@ end)
lsp.ensure_installed({
-- Replace these with whatever servers you want to install
'bashls',
'clangd',
--'clangd',
'julials',
'lua_ls',
--'lua_ls',
'ltex',
'pylsp',
'texlab',
'zls'
--'texlab',
--'zls'
})
--[[
@ -22,10 +22,16 @@ lsp.ensure_installed({
]]--
-- (Optional) Configure lua language server for neovim
require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
require('lspconfig').bashls.setup({})
require('lspconfig').texlab.setup({})
require('lspconfig').clangd.setup({})
--require('lspconfig').gopls.setup({
-- on_attach = on_attach,
--})
require('lspconfig').julials.setup({})
require('lspconfig').ltex.setup({
settings = {
@ -35,28 +41,30 @@ require('lspconfig').ltex.setup({
},
})
require('lspconfig').pylsp.setup({})
--require('lspconfig').gopls.setup({
-- on_attach = on_attach,
--})
require('lspconfig').julials.setup({
--on_attach = on_attach,
symbol_cache_download = true,
--symbol_server = "https://symbol-server",
on_new_config = function(new_config, _)
local julia = vim.fn.expand("/usr/share/julia/bin/julia")
if require'lspconfig'.util.path.is_file(julia) then
vim.notify("Hello!")
new_config.cmd[1] = julia
end
end
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').zls.setup({})
require('lspconfig').bashls.setup({})
require('lspconfig').pylsp.setup({})
-- source: https://rust-analyzer.github.io/manual.html#nvim-lsp
--require('lspconfig').rust_analyzer.setup({
@ -70,6 +78,10 @@ require('lspconfig').bashls.setup({})
-- }
--})
require('lspconfig').texlab.setup({})
require('lspconfig').zls.setup({})
--[[
END LANGUAGE SERVERS CONFIG HERE!!!
]]--

View File

@ -25,11 +25,11 @@ vim.keymap.set("n", "<S-TAB>", ":bprevious<CR>", opts)
-- Telescope
local builtin = require("telescope.builtin")
--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)
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)
-- Harpoon
local mark = require("harpoon.mark")

View File

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

View File

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