add some configs

This commit is contained in:
zolinthecow 2024-11-12 14:34:30 -08:00
parent 2234b188fb
commit c4dca3f7dd
4 changed files with 50 additions and 2 deletions

View File

@ -2,7 +2,10 @@ return {
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
'tpope/vim-fugitive', 'tpope/vim-fugitive',
'tpope/vim-repeat',
'tpope/vim-surround', 'tpope/vim-surround',
'tpope/vim-eunuch',
'tpope/vim-unimpaired',
-- NOTE: Plugins can also be added by using a table, -- NOTE: Plugins can also be added by using a table,
-- with the first argument being the link and the following -- with the first argument being the link and the following

View File

@ -136,11 +136,11 @@ return { -- LSP Configuration & Plugins
local servers = { local servers = {
clangd = {}, clangd = {},
bashls = {}, bashls = {},
-- gopls = {}, gopls = {},
pyright = { pyright = {
filetypes = { 'python' }, filetypes = { 'python' },
}, },
-- rust_analyzer = {}, rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- --
-- Some languages (like typescript) have entire language plugins that can be useful: -- Some languages (like typescript) have entire language plugins that can be useful:

View File

@ -0,0 +1,8 @@
return {
'iamcco/markdown-preview.nvim',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = function()
vim.fn['mkdp#util#install']()
end,
}

View File

@ -0,0 +1,37 @@
return {
'folke/trouble.nvim',
opts = {
open_no_results = true,
win = {
size = 0.4,
},
}, -- for default options, refer to the configuration section for custom setup.
cmd = 'Trouble',
keys = {
{
'<leader>te',
'<cmd>Trouble diagnostics toggle focus=true<cr>',
desc = 'Diagnostics (Trouble)',
},
{
'<leader>ts',
'<cmd>Trouble symbols toggle focus=true<cr>',
desc = 'Symbols (Trouble)',
},
{
'<leader>ti',
'<cmd>Trouble lsp toggle focus=true win.position=right<cr>',
desc = 'LSP Definitions / references / ... (Trouble)',
},
{
'<leader>tl',
'<cmd>Trouble loclist toggle focus=true<cr>',
desc = 'Location List (Trouble)',
},
{
'<leader>tq',
'<cmd>Trouble qflist toggle focus=true<cr>',
desc = 'Quickfix List (Trouble)',
},
},
}