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({ lsp.ensure_installed({
-- Replace these with whatever servers you want to install -- Replace these with whatever servers you want to install
'bashls', 'bashls',
'clangd', --'clangd',
'julials', 'julials',
'lua_ls', --'lua_ls',
'ltex', 'ltex',
'pylsp', 'pylsp',
'texlab', --'texlab',
'zls' --'zls'
}) })
--[[ --[[
@ -22,10 +22,16 @@ lsp.ensure_installed({
]]-- ]]--
-- (Optional) Configure lua language server for neovim -- (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({ require('lspconfig').ltex.setup({
settings = { settings = {
@ -35,28 +41,30 @@ require('lspconfig').ltex.setup({
}, },
}) })
require('lspconfig').pylsp.setup({}) require('lspconfig').lua_ls.setup({
settings = {
--require('lspconfig').gopls.setup({ Lua = {
-- on_attach = on_attach, runtime = {
--}) -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
require('lspconfig').julials.setup({ },
--on_attach = on_attach, diagnostics = {
symbol_cache_download = true, -- Get the language server to recognize the `vim` global
--symbol_server = "https://symbol-server", globals = {'vim'},
on_new_config = function(new_config, _) },
local julia = vim.fn.expand("/usr/share/julia/bin/julia") workspace = {
if require'lspconfig'.util.path.is_file(julia) then -- Make the server aware of Neovim runtime files
vim.notify("Hello!") library = vim.api.nvim_get_runtime_file("", true),
new_config.cmd[1] = julia },
end -- Do not send telemetry data containing a randomized but unique identifier
end telemetry = {
enable = false,
},
},
}
}) })
require('lspconfig').zls.setup({}) require('lspconfig').pylsp.setup({})
require('lspconfig').bashls.setup({})
-- 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({
@ -70,6 +78,10 @@ require('lspconfig').bashls.setup({})
-- } -- }
--}) --})
require('lspconfig').texlab.setup({})
require('lspconfig').zls.setup({})
--[[ --[[
END LANGUAGE SERVERS CONFIG HERE!!! END LANGUAGE SERVERS CONFIG HERE!!!
]]-- ]]--

View File

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

View File

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