Skip to content

Commit fd7228b

Browse files
committed
upd
1 parent 2fab75f commit fd7228b

File tree

7 files changed

+114
-69
lines changed

7 files changed

+114
-69
lines changed

lua/plugins/aichat.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
return {
2+
-- 'jorgenwh/aichat.nvim',
3+
dir = '/home/jorgen/src/aichat.nvim',
4+
5+
dependencies = {
6+
{'MunifTanjim/nui.nvim'},
7+
},
8+
}

lua/plugins/chatGPT.lua

Lines changed: 0 additions & 32 deletions
This file was deleted.

lua/plugins/conform.lua

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
1-
return { -- Autoformat
2-
'stevearc/conform.nvim',
3-
lazy = false,
4-
keys = {
5-
{
6-
'<leader>f',
7-
function()
8-
require('conform').format { async = true, lsp_fallback = true }
9-
end,
10-
mode = '',
11-
desc = '[F]ormat buffer',
12-
},
13-
},
14-
opts = {
15-
notify_on_error = false,
16-
format_on_save = function(bufnr)
17-
-- Disable "format_on_save lsp_fallback" for languages that don't
18-
-- have a well standardized coding style. You can add additional
19-
-- languages here or re-enable it for the disabled ones.
20-
local disable_filetypes = { c = true, cpp = true }
21-
return {
22-
timeout_ms = 500,
23-
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
24-
}
25-
end,
26-
formatters_by_ft = {
27-
lua = { 'stylua' },
28-
-- Conform can also run multiple formatters sequentially
29-
-- python = { "isort", "black" },
30-
--
31-
-- You can use a sub-list to tell conform to run *until* a formatter
32-
-- is found.
33-
-- javascript = { { "prettierd", "prettier" } },
34-
},
35-
},
36-
}
1+
return { }
2+
-- return { -- Autoformat
3+
-- 'stevearc/conform.nvim',
4+
-- lazy = false,
5+
-- keys = {
6+
-- {
7+
-- '<leader>f',
8+
-- function()
9+
-- require('conform').format { async = true, lsp_fallback = true }
10+
-- end,
11+
-- mode = '',
12+
-- desc = '[F]ormat buffer',
13+
-- },
14+
-- },
15+
-- opts = {
16+
-- notify_on_error = false,
17+
-- format_on_save = function(bufnr)
18+
-- -- Disable "format_on_save lsp_fallback" for languages that don't
19+
-- -- have a well standardized coding style. You can add additional
20+
-- -- languages here or re-enable it for the disabled ones.
21+
-- local disable_filetypes = { c = true, cpp = true }
22+
-- return {
23+
-- timeout_ms = 500,
24+
-- lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
25+
-- }
26+
-- end,
27+
-- formatters_by_ft = {
28+
-- lua = { 'stylua' },
29+
-- -- Conform can also run multiple formatters sequentially
30+
-- -- python = { "isort", "black" },
31+
-- --
32+
-- -- You can use a sub-list to tell conform to run *until* a formatter
33+
-- -- is found.
34+
-- -- javascript = { { "prettierd", "prettier" } },
35+
-- },
36+
-- },
37+
-- }

lua/plugins/leap.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
vim.keymap.set({ 'n', 'x', 'o' }, 's', '<Plug>(leap-forward)')
2+
vim.keymap.set({ 'n', 'x', 'o' }, 'S', '<Plug>(leap-backward)')
3+
-- vim.keymap.set({ 'n', 'x', 'o' }, 'gs', '<Plug>(leap-from-window)')
4+
5+
return {
6+
'ggandor/leap.nvim',
7+
}

lua/plugins/neo_tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ return {
66
'nvim-lua/plenary.nvim',
77
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
88
'MunifTanjim/nui.nvim',
9-
'3rd/image.nvim', -- Optional image support in preview window: See `# Preview Mode` for more information
9+
-- '3rd/image.nvim', -- Optional image support in preview window: See `# Preview Mode` for more information
1010
},
1111

1212
keys = {

lua/plugins/noice.lua

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
return {
2+
-- lazy.nvim
3+
{
4+
'folke/noice.nvim',
5+
event = 'VeryLazy',
6+
opts = {
7+
-- add any options here
8+
lsp = {
9+
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
10+
override = {
11+
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
12+
['vim.lsp.util.stylize_markdown'] = true,
13+
['cmp.entry.get_documentation'] = true, -- requires hrsh7th/nvim-cmp
14+
},
15+
},
16+
-- you can enable a preset for easier configuration
17+
presets = {
18+
bottom_search = true, -- use a classic bottom cmdline for search
19+
command_palette = true, -- position the cmdline and popupmenu together
20+
long_message_to_split = true, -- long messages will be sent to a split
21+
inc_rename = false, -- enables an input dialog for inc-rename.nvim
22+
lsp_doc_border = false, -- add a border to hover docs and signature help
23+
},
24+
},
25+
dependencies = {
26+
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
27+
'MunifTanjim/nui.nvim',
28+
-- OPTIONAL:
29+
-- `nvim-notify` is only needed, if you want to use the notification view.
30+
-- If not available, we use `mini` as the fallback
31+
'rcarriga/nvim-notify',
32+
},
33+
},
34+
}

lua/plugins/resession.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
return {
2+
{
3+
'stevearc/resession.nvim',
4+
config = function()
5+
local resession = require 'resession'
6+
resession.setup {}
7+
8+
-- Automatically save sessions on by working directory on exit
9+
vim.api.nvim_create_autocmd('VimLeavePre', {
10+
callback = function()
11+
resession.save(vim.fn.getcwd(), { notify = true })
12+
end,
13+
})
14+
15+
-- Automatically load sessions on startup by working directory
16+
vim.api.nvim_create_autocmd('VimEnter', {
17+
callback = function()
18+
-- Only load the session if nvim was started with no args
19+
if vim.fn.argc(-1) == 0 then
20+
resession.load(vim.fn.getcwd(), { silence_errors = true })
21+
end
22+
end,
23+
nested = true,
24+
})
25+
end,
26+
},
27+
}

0 commit comments

Comments
 (0)