feat: update harpoon and lsp
This commit is contained in:
parent
9502eb0f10
commit
bdd47005d6
|
|
@ -41,7 +41,7 @@ return {
|
|||
harpoon:list():select(3)
|
||||
end, { desc = 'Harpoon to file 3' })
|
||||
|
||||
vim.keymap.set('n', '<C-u>', function()
|
||||
vim.keymap.set('n', '<C-g>', function()
|
||||
harpoon:list():select(4)
|
||||
end, { desc = 'Harpoon to file 4' })
|
||||
|
||||
|
|
@ -56,27 +56,27 @@ return {
|
|||
|
||||
-- Optional: Telescope integration
|
||||
-- If you have telescope installed, you can add this for a better UI
|
||||
local conf = require('telescope.config').values
|
||||
local function toggle_telescope(harpoon_files)
|
||||
local file_paths = {}
|
||||
for _, item in ipairs(harpoon_files.items) do
|
||||
table.insert(file_paths, item.value)
|
||||
end
|
||||
|
||||
require('telescope.pickers')
|
||||
.new({}, {
|
||||
prompt_title = 'Harpoon',
|
||||
finder = require('telescope.finders').new_table {
|
||||
results = file_paths,
|
||||
},
|
||||
previewer = conf.file_previewer {},
|
||||
sorter = conf.generic_sorter {},
|
||||
})
|
||||
:find()
|
||||
end
|
||||
|
||||
vim.keymap.set('n', '<C-e>', function()
|
||||
toggle_telescope(harpoon:list())
|
||||
end, { desc = 'Open harpoon window' })
|
||||
-- local conf = require('telescope.config').values
|
||||
-- local function toggle_telescope(harpoon_files)
|
||||
-- local file_paths = {}
|
||||
-- for _, item in ipairs(harpoon_files.items) do
|
||||
-- table.insert(file_paths, item.value)
|
||||
-- end
|
||||
--
|
||||
-- require('telescope.pickers')
|
||||
-- .new({}, {
|
||||
-- prompt_title = 'Harpoon',
|
||||
-- finder = require('telescope.finders').new_table {
|
||||
-- results = file_paths,
|
||||
-- },
|
||||
-- previewer = conf.file_previewer {},
|
||||
-- sorter = conf.generic_sorter {},
|
||||
-- })
|
||||
-- :find()
|
||||
-- end
|
||||
--
|
||||
-- vim.keymap.set('n', '<C-e>', function()
|
||||
-- toggle_telescope(harpoon:list())
|
||||
-- end, { desc = 'Open harpoon window' })
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,6 +117,8 @@ return { -- LSP Configuration & Plugins
|
|||
local ensure_installed = vim.tbl_keys(servers or {})
|
||||
vim.list_extend(ensure_installed, {
|
||||
'stylua', -- Used to format lua code
|
||||
'black', -- Python formatter
|
||||
'isort', -- Python import formatter
|
||||
})
|
||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ require('lazy').setup({
|
|||
require 'newbim/plugins/mini',
|
||||
require 'newbim/plugins/comment',
|
||||
require 'newbim/plugins/markdown',
|
||||
require 'newbim/plugins/copilot',
|
||||
}, {
|
||||
ui = {
|
||||
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
||||
|
|
|
|||
Loading…
Reference in New Issue