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({
--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
-- --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').zls.setup({})

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

@ -49,8 +49,8 @@ vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {f
-- Leader key
vim.g.mapleader = " "
--vim.g.maplocalleader = " "
vim.g.maplocalleader = "\\"
vim.g.maplocalleader = " "
--vim.g.maplocalleader = "\\"
-- Undotree instead of swapfile
vim.opt.swapfile = false