Trying to set local leader to <Space>

This commit is contained in:
Eduardo Cueto-Mendoza 2023-07-24 09:42:20 +01:00
parent 58f546a7ce
commit 33652face2
3 changed files with 17 additions and 17 deletions

View File

@ -42,16 +42,16 @@ require('lspconfig').pylsp.setup({})
--}) --})
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/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
end -- end
end -- end
}) })
require('lspconfig').zls.setup({}) require('lspconfig').zls.setup({})

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

@ -49,8 +49,8 @@ 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 -- Undotree instead of swapfile
vim.opt.swapfile = false vim.opt.swapfile = false