From 92511131d1e5452ad08231196c627becb7f09143 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Tue, 26 Dec 2023 22:03:57 +0100 Subject: [PATCH] Fix telescope error, remove unnded remap's. --- after/plugin/lsp.lua | 2 +- after/plugin/telescope.lua | 2 +- lua/crony/map.lua | 9 --------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 2033647..39b2b94 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -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, }, diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 3e114ce..c1db340 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,6 +1,6 @@ local builtin = require("telescope.builtin") vim.keymap.set("n", "pf", builtin.find_files, { desc = "Find files" }) -vim.keymap.set("n", "", builtin.git_files, { desc = "Find git files" }) +vim.keymap.set("n", "", "Telescope git_files", { desc = "Find git files" }) vim.keymap.set("n", "ps", function() builtin.grep_string({ search = vim.fn.input("Grep > ") }) end, { desc = "Find string" }) diff --git a/lua/crony/map.lua b/lua/crony/map.lua index 514c55e..603cdd1 100644 --- a/lua/crony/map.lua +++ b/lua/crony/map.lua @@ -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", "e", vim.diagnostic.open_float, { desc = "Open floating diagnostic message" }) -map("n", "q", vim.diagnostic.setloclist, { desc = "Open diagnostics list" }) - --- Lsp format --- map('n', 'f', vim.lsp.buf.format, { desc = "Format current buffer" }) - -- Move text easilly map("v", "J", ":m '>+1gv=gv", { desc = "Move selected text up" }) map("v", "K", ":m '<-2gv=gv", { desc = "Move selected text down" })