minor changes

This commit is contained in:
Kristofers Solo
2024-01-24 23:27:15 +02:00
parent 5f7013e770
commit 06c3d0ad6e
10 changed files with 33 additions and 46 deletions

View File

@@ -1,6 +1,15 @@
return {
"zbirenbaum/copilot.lua",
event = "InsertEnter",
keys = {
{
"<leader>lc",
function()
vim.cmd("CopilotToggle")
end,
desc = "Toggle [C]opilot",
},
},
opts = {
panel = {
enabled = true,

View File

@@ -1,6 +1,6 @@
return {
"jayp0521/mason-nvim-dap.nvim",
-- cond = false,
cond = false,
opts = {
ensure_installed = {
"python",

View File

@@ -1 +0,0 @@
return { "sindrets/diffview.nvim" }

View File

@@ -1,8 +1,8 @@
return {
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
dependencies = {
"williamboman/mason.nvim",
"neovim/nvim-lspconfig",
"williamboman/mason-lspconfig.nvim",
"hrsh7th/cmp-nvim-lsp",
"folke/neodev.nvim",
"nvim-telescope/telescope.nvim",
@@ -35,22 +35,6 @@ return {
vim.diagnostic.setloclist,
desc = "[S]etloclist",
},
{
"<leader>lj",
function()
vim.diagnostic.goto_next()
vim.cmd("norm zz")
end,
desc = "Next Diagnostic",
},
{
"<leader>lk",
function()
vim.diagnostic.goto_prev()
vim.cmd("norm zz")
end,
desc = "Prev Diagnostic",
},
{
"<leader>lr",
vim.lsp.buf.rename,
@@ -93,13 +77,6 @@ return {
require("telescope.builtin").quickfix,
desc = "Telescope [Q]uickfix",
},
{
"<leader>lc",
function()
vim.cmd("CopilotToggle")
end,
desc = "Toggle [C]opilot",
},
},
config = function()
require("mason").setup()

View File

@@ -55,12 +55,13 @@ return {
-- See :help oil-actions for a list of all available actions
keymaps = {
["g?"] = "actions.show_help",
["<CR>"] = "actions.select",
["<leader>v"] = "actions.select_vsplit",
["<leader>h"] = "actions.select_split",
["<leader>t"] = "actions.select_tab",
["<leader>p"] = "actions.preview",
["<cr>"] = "actions.select",
["v"] = "actions.select_vsplit",
["s"] = "actions.select_split",
["t"] = "actions.select_tab",
["p"] = "actions.preview",
["<C-c>"] = "actions.close",
["q"] = "actions.close",
["<C-r>"] = "actions.refresh",
["Y"] = "actions.copy_entry_path",
["-"] = "actions.parent",

View File

@@ -1,5 +1,6 @@
return {
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
opts = true,
opts = {},
}

View File

@@ -21,7 +21,9 @@ return {
keys = {
{
"<C-p>",
require("telescope.builtin").git_files,
function()
require("telescope.builtin").git_files(require("telescope.themes").get_dropdown({ previewer = false }))
end,
desc = "Telescope git_files",
},
{

View File

@@ -24,18 +24,18 @@ return {
desc = "[D]ocument Diagnostics",
},
{
"<leader>tn",
"[d",
function()
require("trouble").next({ skip_groups = true, jump = true })
end,
desc = "Next",
desc = "Trouble Next",
},
{
"<leader>tp",
"]d",
function()
require("trouble").previous({ skip_groups = true, jump = true })
end,
desc = "Previous",
desc = "Trouble Prev",
},
},
opts = {

View File

@@ -4,9 +4,13 @@ return {
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
opts = true,
config = function()
local wk = require("which-key")
wk.setup({
window = {
border = "single",
},
})
local opts = {
mode = "n", -- NORMAL mode