Skip to content

Commit 7715085

Browse files
author
jhe
committed
2 parents 397bdb7 + e037b3a commit 7715085

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

lua/plugins/copilot.lua

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
local COPILOT_ENABLED = true
2-
3-
vim.keymap.set('n', '<F8>', function()
4-
if COPILOT_ENABLED then
5-
vim.cmd 'Copilot disable'
6-
COPILOT_ENABLED = false
7-
print 'Copilot disabled'
8-
else
9-
vim.cmd 'Copilot enable'
10-
COPILOT_ENABLED = true
11-
print 'Copilot enabled'
12-
end
13-
end, { noremap = true, silent = true })
14-
151
return {
162
'zbirenbaum/copilot.lua',
173
cmd = 'Copilot',
@@ -23,7 +9,7 @@ return {
239
-- disable copilot by default
2410
copilot.setup {
2511
suggestion = {
26-
enabled = COPILOT_ENABLED,
12+
enabled = true,
2713
auto_trigger = true,
2814
keymap = {
2915
accept = '<Tab>',

lua/plugins/markdown_preview.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
return {
2+
{
3+
'iamcco/markdown-preview.nvim',
4+
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
5+
ft = { 'markdown' },
6+
build = function()
7+
vim.fn['mkdp#util#install']()
8+
end,
9+
},
10+
}

lua/plugins/mini_nvim.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ return { -- Collection of various small independent plugins/modules
2828
-- cursor location to LINE:COLUMN
2929
---@diagnostic disable-next-line: duplicate-set-field
3030
statusline.section_location = function()
31-
return '%2l:%-2v'
31+
return '%2l:%-2v/%L'
3232
end
3333

3434
-- ... and there is more!

lua/plugins/neo_tree.lua

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ return {
44
branch = 'v3.x',
55
dependencies = {
66
'nvim-lua/plenary.nvim',
7-
'nvim-tree/nvim-web-devicons',
7+
'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
},
11+
1112
keys = {
1213
{
1314
'<leader>nt',
@@ -19,7 +20,19 @@ return {
1920
},
2021
opts = {
2122
close_if_last_window = true,
22-
use_libuv_file_watcher = true,
23+
filesystem = {
24+
use_libuv_file_watcher = true,
25+
follow_current_file = {
26+
enabled = true,
27+
leave_dirs_open = true,
28+
},
29+
},
30+
buffers = {
31+
follow_current_file = {
32+
enabled = true,
33+
leave_dirs_open = true,
34+
},
35+
},
2336
event_handlers = {
2437
{
2538
event = 'neo_tree_buffer_enter',

0 commit comments

Comments
 (0)