Skip to content

Commit

Permalink
Added trouble.nvim and basic Copilot support. Removed sumneko.
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonllera committed Dec 15, 2023
1 parent 21dbf3e commit 7db908a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 46 deletions.
7 changes: 5 additions & 2 deletions lua/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ nnoremap("<leader>gl", ":Gclog<CR>")
nnoremap("<leader>i", '<Cmd>lua vim.diagnostic.open_float(0, {scope = "line"})<CR>')

-- Open local diagnostics in local list
nnoremap("<leader>I", "<Cmd>lua vim.diagnostic.setloclist()<CR>")
nnoremap("<leader>I", "<cmd>TroubleToggle document_diagnostics<cr>")

-- Open all project diagnostics in quickfix list
nnoremap("<leader><A-I>", "<Cmd>lua vim.diagnostic.setqflist()<CR>")
nnoremap("<leader><A-I>", "<cmd>TroubleToggle workspace_diagnostics<cr>")

-- Telescope
nnoremap("<leader>o", "<Cmd>Telescope find_files<CR>")
Expand All @@ -118,6 +118,9 @@ nnoremap("<leader>lg", "<Cmd>Telescope live_grep<CR>")
nnoremap("<leader>e", "<Cmd>NvimTreeToggle<CR>") -- NvimTree
-- nnoremap("<leader>e", "<Cmd>RnvimrToggle<CR>")

-- Run Copilot
nnoremap("<leader>C", "<Cmd>Copilot panel<CR>")

-- EasyAlign
-- xmap("ga", "<cmd>EasyAlign")
-- nmap("ga", "<cmd>EasyAlign")
Expand Down
44 changes: 0 additions & 44 deletions lua/lsp/sumneko.lua

This file was deleted.

8 changes: 8 additions & 0 deletions lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ return require('packer').startup(function(use)
end
})

use 'folke/trouble.nvim'

-- git commands
use 'tpope/vim-fugitive'

Expand All @@ -122,10 +124,16 @@ return require('packer').startup(function(use)
use 'tpope/vim-repeat'
use 'junegunn/vim-easy-align'

-- Copilot
use "github/copilot.vim"

-- Python formatting
use "EgZvor/vim-black"
use 'jeetsukumaran/vim-python-indent-black'

-- Python types
use "microsoft/python-type-stubs"

-- Python
-- use 'heavenshell/vim-pydocstring' -- Overwrites a keymap, need to fix.
-- use 'bfredl/nvim-ipy'
Expand Down
1 change: 1 addition & 0 deletions lua/plugins/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ local servers = {
"clangd",
"dockerls",
-- "jedi_langauge_server",
"hls",
"jsonls",
"lua_ls",
"marksman",
Expand Down

0 comments on commit 7db908a

Please sign in to comment.