upd
This commit is contained in:
parent
2fab75fd28
commit
fd7228b0cc
|
@ -0,0 +1,8 @@
|
||||||
|
return {
|
||||||
|
-- 'jorgenwh/aichat.nvim',
|
||||||
|
dir = '/home/jorgen/src/aichat.nvim',
|
||||||
|
|
||||||
|
dependencies = {
|
||||||
|
{'MunifTanjim/nui.nvim'},
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,32 +0,0 @@
|
||||||
vim.keymap.set('v', '<leader>a', '<cmd>ChatGPTEditWithInstructions<CR>', { noremap = true, silent = true })
|
|
||||||
vim.keymap.set('n', '<leader>a', '<cmd>ChatGPT<CR>', { noremap = true, silent = true })
|
|
||||||
|
|
||||||
return {
|
|
||||||
'jackMort/ChatGPT.nvim',
|
|
||||||
event = 'VeryLazy',
|
|
||||||
config = function()
|
|
||||||
require('chatgpt').setup {
|
|
||||||
popup_input = {
|
|
||||||
submit = '<S-CR>',
|
|
||||||
},
|
|
||||||
defaults = {
|
|
||||||
openai_params = {
|
|
||||||
model = 'gpt-4o',
|
|
||||||
max_tokens = 4096,
|
|
||||||
},
|
|
||||||
openai_edit_params = {
|
|
||||||
model = 'gpt-4o',
|
|
||||||
},
|
|
||||||
popup_layout = {
|
|
||||||
default = 'right',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
dependencies = {
|
|
||||||
'MunifTanjim/nui.nvim',
|
|
||||||
'nvim-lua/plenary.nvim',
|
|
||||||
'folke/trouble.nvim',
|
|
||||||
'nvim-telescope/telescope.nvim',
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,36 +1,37 @@
|
||||||
return { -- Autoformat
|
return { }
|
||||||
'stevearc/conform.nvim',
|
-- return { -- Autoformat
|
||||||
lazy = false,
|
-- 'stevearc/conform.nvim',
|
||||||
keys = {
|
-- lazy = false,
|
||||||
{
|
-- keys = {
|
||||||
'<leader>f',
|
-- {
|
||||||
function()
|
-- '<leader>f',
|
||||||
require('conform').format { async = true, lsp_fallback = true }
|
-- function()
|
||||||
end,
|
-- require('conform').format { async = true, lsp_fallback = true }
|
||||||
mode = '',
|
-- end,
|
||||||
desc = '[F]ormat buffer',
|
-- mode = '',
|
||||||
},
|
-- desc = '[F]ormat buffer',
|
||||||
},
|
-- },
|
||||||
opts = {
|
-- },
|
||||||
notify_on_error = false,
|
-- opts = {
|
||||||
format_on_save = function(bufnr)
|
-- notify_on_error = false,
|
||||||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
-- format_on_save = function(bufnr)
|
||||||
-- have a well standardized coding style. You can add additional
|
-- -- Disable "format_on_save lsp_fallback" for languages that don't
|
||||||
-- languages here or re-enable it for the disabled ones.
|
-- -- have a well standardized coding style. You can add additional
|
||||||
local disable_filetypes = { c = true, cpp = true }
|
-- -- languages here or re-enable it for the disabled ones.
|
||||||
return {
|
-- local disable_filetypes = { c = true, cpp = true }
|
||||||
timeout_ms = 500,
|
-- return {
|
||||||
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
-- timeout_ms = 500,
|
||||||
}
|
-- lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
||||||
end,
|
-- }
|
||||||
formatters_by_ft = {
|
-- end,
|
||||||
lua = { 'stylua' },
|
-- formatters_by_ft = {
|
||||||
-- Conform can also run multiple formatters sequentially
|
-- lua = { 'stylua' },
|
||||||
-- python = { "isort", "black" },
|
-- -- Conform can also run multiple formatters sequentially
|
||||||
--
|
-- -- python = { "isort", "black" },
|
||||||
-- You can use a sub-list to tell conform to run *until* a formatter
|
-- --
|
||||||
-- is found.
|
-- -- You can use a sub-list to tell conform to run *until* a formatter
|
||||||
-- javascript = { { "prettierd", "prettier" } },
|
-- -- is found.
|
||||||
},
|
-- -- javascript = { { "prettierd", "prettier" } },
|
||||||
},
|
-- },
|
||||||
}
|
-- },
|
||||||
|
-- }
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
vim.keymap.set({ 'n', 'x', 'o' }, 's', '<Plug>(leap-forward)')
|
||||||
|
vim.keymap.set({ 'n', 'x', 'o' }, 'S', '<Plug>(leap-backward)')
|
||||||
|
-- vim.keymap.set({ 'n', 'x', 'o' }, 'gs', '<Plug>(leap-from-window)')
|
||||||
|
|
||||||
|
return {
|
||||||
|
'ggandor/leap.nvim',
|
||||||
|
}
|
|
@ -6,7 +6,7 @@ return {
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
||||||
'MunifTanjim/nui.nvim',
|
'MunifTanjim/nui.nvim',
|
||||||
'3rd/image.nvim', -- Optional image support in preview window: See `# Preview Mode` for more information
|
-- '3rd/image.nvim', -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||||
},
|
},
|
||||||
|
|
||||||
keys = {
|
keys = {
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
return {
|
||||||
|
-- lazy.nvim
|
||||||
|
{
|
||||||
|
'folke/noice.nvim',
|
||||||
|
event = 'VeryLazy',
|
||||||
|
opts = {
|
||||||
|
-- add any options here
|
||||||
|
lsp = {
|
||||||
|
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||||
|
override = {
|
||||||
|
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
|
||||||
|
['vim.lsp.util.stylize_markdown'] = true,
|
||||||
|
['cmp.entry.get_documentation'] = true, -- requires hrsh7th/nvim-cmp
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- you can enable a preset for easier configuration
|
||||||
|
presets = {
|
||||||
|
bottom_search = true, -- use a classic bottom cmdline for search
|
||||||
|
command_palette = true, -- position the cmdline and popupmenu together
|
||||||
|
long_message_to_split = true, -- long messages will be sent to a split
|
||||||
|
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||||
|
lsp_doc_border = false, -- add a border to hover docs and signature help
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
-- OPTIONAL:
|
||||||
|
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||||
|
-- If not available, we use `mini` as the fallback
|
||||||
|
'rcarriga/nvim-notify',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'stevearc/resession.nvim',
|
||||||
|
config = function()
|
||||||
|
local resession = require 'resession'
|
||||||
|
resession.setup {}
|
||||||
|
|
||||||
|
-- Automatically save sessions on by working directory on exit
|
||||||
|
vim.api.nvim_create_autocmd('VimLeavePre', {
|
||||||
|
callback = function()
|
||||||
|
resession.save(vim.fn.getcwd(), { notify = true })
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Automatically load sessions on startup by working directory
|
||||||
|
vim.api.nvim_create_autocmd('VimEnter', {
|
||||||
|
callback = function()
|
||||||
|
-- Only load the session if nvim was started with no args
|
||||||
|
if vim.fn.argc(-1) == 0 then
|
||||||
|
resession.load(vim.fn.getcwd(), { silence_errors = true })
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
nested = true,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue