-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
68 lines (64 loc) · 2.25 KB
/
Copy pathinit.lua
File metadata and controls
68 lines (64 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
-- bootstrap lazy.nvim, LazyVim and your plugins
require('config.lazy')
P = function(v)
print(vim.inspect(v))
return v
end
require('luasnip.loaders.from_snipmate').lazy_load({ paths = { '~/.config/nvim/snippets/snipmate' } })
ASGlobToggle = function()
local as = require('autosave')
local actions = require('autosave.actions')
actions.global_toggle()
local k = ''
if as.enabled then
k = '🟥'
end
vim.notify(k .. ' Global(!) autosave is ' .. tostring(as.enabled))
end
local actions = require('telescope.actions')
require('telescope').setup({
defaults = { mappings = { i = {
[',c'] = actions.close,
[',q'] = actions.close,
} } },
})
-- vim.lsp.set_log_level("debug")
-- vim.api.nvim_set_hl(0, 'String', { fg = '#839496', italic = true })
-- vim.api.nvim_set_hl(0, 'String', { fg = '#839496', italic = true })
require('lspconfig').harper_ls.setup({ filetypes = { 'markdown' } })
vim.api.nvim_set_keymap('n', 'Z', '<Cmd>normal! <C-v><CR>', { noremap = true, silent = true })
require('mini.surround').setup()
require('flash').toggle() -- enable flash markers on normal / search from start
vim.api.nvim_set_hl(0, 'DiagnosticHint', { fg = '#283D60', italic = true })
vim.api.nvim_set_hl(0, 'DiagnosticWarn', { fg = '#225588', italic = true })
-- vim.api.nvim_set_hl(0, 'Normal', { guibg = 'Red' })
-- vim.api.nvim_command('highlight Normal guibg=red')
--vim.api.nvim_set_hl(0, 'Function', { fg = '#93a1a1', italic = true })
-- vim.api.nvim_set_hl(0, 'Function', { fg = '#6c71c4', italic = false, bold = true })
-- vim.api.nvim_set_hl(0, 'NimTreeIndentMarkerxxx', { fg = '#6c71c4', italic = false, bold = true })
-- vim.api.nvim_set_hl(0, 'NimTreeIndentMarker', { fg = '#6c71c4', italic = false, bold = true })
-- --vim.api.nvim_set_hl(0, 'Class', { fg = '#93a1a1', italic = true })
--
-- vim.opt.termguicolors = false
-- require('codecompanion').setup({
-- extensions = {
-- mcphub = {
-- callback = 'mcphub.extensions.codecompanion',
-- opts = {
-- make_vars = true,
-- make_slash_commands = true,
-- show_result_in_chat = true,
-- },
-- },
-- },
-- })
require('codecompanion').setup({
strategies = {
chat = {
adapter = 'anthropic',
},
inline = {
adapter = 'anthropic',
},
},
})