feat: some shit

This commit is contained in:
2022-11-16 23:37:05 +01:00
parent 7bf1d29cd6
commit 00822e03a4
11 changed files with 335 additions and 175 deletions

View File

@ -23,7 +23,7 @@ map("n", "gd", "<Cmd>lua vim.lsp.buf.definition()<CR>", options)
map("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", options)
map("n", "K", "<cmd>Lspsaga hover_doc<CR>", { silent = true })
map("n", "<leader>o", "<cmd>LSoutlineToggle<CR>", { silent = true })
-- map("n", "<leader>o", "<cmd>LSoutlineToggle<CR>", { silent = true })
map("n", "<leader>e", "<cmd>Lspsaga show_cursor_diagnostics<CR>", { silent = true })
map("n", "<Leader>rn", "<cmd>Lspsaga rename<CR>", options)
map({ "n", "v" }, "<leader>c", "<cmd>Lspsaga code_action<CR>", { silent = true })

View File

@ -2,6 +2,7 @@
-- General --
-------------
local set = vim.opt
local g = vim.g;
set.swapfile = false -- Don't use swapfile
set.updatetime = 0 -- Faster completion
set.encoding = "utf-8" -- The encoding displayed
@ -40,6 +41,7 @@ set.ruler = true -- Show the cursor position all the time
set.splitbelow = true -- Horizontal splits will automatically be below
set.splitright = true -- Vertical splits will automatically be to the right
set.conceallevel = 0 -- So that I can see `` in markdown files
g.markdown_fenced_languages = { "javascript", "typescript", "bash", "lua", "go", "rust", "c", "cpp" }
set.tabstop = 2 -- Insert 2 spaces for a tab
set.number = true -- Line numbers
set.background = "dark" -- tell vim what the background color looks like

View File

@ -73,15 +73,16 @@ return packer.startup(function(use)
---------------------
use("junegunn/fzf")
use({ "ggandor/leap.nvim",
use({
"ggandor/leap.nvim",
config = function()
local leap = require("leap")
leap.add_default_mappings()
leap.setup({})
end })
end,
})
use({
"nvim-telescope/telescope.nvim",
cmd = "Telescope",
config = function()
require("configs.telescope")
end,
@ -97,7 +98,6 @@ return packer.startup(function(use)
use("williamboman/mason-lspconfig.nvim")
use("jose-elias-alvarez/null-ls.nvim")
use("folke/lsp-colors.nvim")
-- use("kosayoda/nvim-lightbulb")
use({
"folke/trouble.nvim",
event = "BufRead",
@ -189,7 +189,17 @@ return packer.startup(function(use)
--------------------
-- IDE Type Stuff --
--------------------
use("ThePrimeagen/vim-be-good")
use({ "ThePrimeagen/git-worktree.nvim",
config = function()
require("git-worktree").setup()
end,
})
use({
"GnikDroy/projections.nvim",
config = function()
require("configs.sessions")
end,
})
-- Dap Debugger -- Have not yet been able to set this up
-- use({ "mfussenegger/nvim-dap" })