Fix telescope error, remove unnded remap's.
This commit is contained in:
parent
5f3fac7665
commit
92511131d1
@ -75,7 +75,7 @@ vim.diagnostic.config({
|
||||
|
||||
require("mason").setup({})
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = { "lua_ls", "jsonls", "bashls", "pyright", "marksman", "golps" },
|
||||
ensure_installed = { "lua_ls", "jsonls", "bashls", "pyright", "marksman", "gopls" },
|
||||
handlers = {
|
||||
lsp.default_setup,
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
local builtin = require("telescope.builtin")
|
||||
vim.keymap.set("n", "<leader>pf", builtin.find_files, { desc = "Find files" })
|
||||
vim.keymap.set("n", "<C-p>", builtin.git_files, { desc = "Find git files" })
|
||||
vim.keymap.set("n", "<C-p>", "<cmd>Telescope git_files<cr>", { desc = "Find git files" })
|
||||
vim.keymap.set("n", "<leader>ps", function()
|
||||
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
||||
end, { desc = "Find string" })
|
||||
|
@ -4,15 +4,6 @@ local map = vim.keymap.set
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = ";"
|
||||
|
||||
-- Diagnostic keymaps
|
||||
map("n", "[d", vim.diagnostic.goto_prev, { desc = "Go to previous diagnostic message" })
|
||||
map("n", "]d", vim.diagnostic.goto_next, { desc = "Go to next diagnostic message" })
|
||||
map("n", "<leader>e", vim.diagnostic.open_float, { desc = "Open floating diagnostic message" })
|
||||
map("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Open diagnostics list" })
|
||||
|
||||
-- Lsp format
|
||||
-- map('n', '<leader>f', vim.lsp.buf.format, { desc = "Format current buffer" })
|
||||
|
||||
-- Move text easilly
|
||||
map("v", "J", ":m '>+1<CR>gv=gv", { desc = "Move selected text up" })
|
||||
map("v", "K", ":m '<-2<CR>gv=gv", { desc = "Move selected text down" })
|
||||
|
Loading…
Reference in New Issue
Block a user