Compare commits
No commits in common. "43f63558c47a8ea8b81b359dc11b2b3509670ae9" and "3daccea3087e15915056976b8f68b67291964aec" have entirely different histories.
43f63558c4
...
3daccea308
3 changed files with 2 additions and 23 deletions
|
@ -77,17 +77,4 @@ vim.keymap.set('n', '<leader><tab>d', '<cmd>tabclose<cr>', { desc = 'Close Tab'
|
||||||
vim.keymap.set('n', '<leader><tab>]', '<cmd>tabnext<cr>', { desc = 'Next Tab' })
|
vim.keymap.set('n', '<leader><tab>]', '<cmd>tabnext<cr>', { desc = 'Next Tab' })
|
||||||
vim.keymap.set('n', '<leader><tab>[', '<cmd>tabprevious<cr>', { desc = 'Previous Tab' })
|
vim.keymap.set('n', '<leader><tab>[', '<cmd>tabprevious<cr>', { desc = 'Previous Tab' })
|
||||||
|
|
||||||
-- Toggle LLM Suggestions
|
|
||||||
vim.keymap.set('n', '<leader>tt', function()
|
|
||||||
local cp = require 'copilot.suggestion'
|
|
||||||
|
|
||||||
cp.toggle_auto_trigger()
|
|
||||||
|
|
||||||
if vim.b.copilot_suggestion_auto_trigger then
|
|
||||||
vim.notify 'Suggestions Enabled'
|
|
||||||
else
|
|
||||||
vim.notify 'Suggestions Disabled'
|
|
||||||
end
|
|
||||||
end, { desc = '[T]oggle LLM Suggestion Auto-[T]rigger' })
|
|
||||||
|
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
@ -25,7 +25,7 @@ return {
|
||||||
},
|
},
|
||||||
suggestion = {
|
suggestion = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
auto_trigger = false,
|
auto_trigger = true,
|
||||||
debounce = 75,
|
debounce = 75,
|
||||||
keymap = {
|
keymap = {
|
||||||
accept = '<M-y>',
|
accept = '<M-y>',
|
||||||
|
|
|
@ -3,15 +3,7 @@ return {
|
||||||
event = { 'BufReadPre', 'BufNewFile' },
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
local lint = require 'lint'
|
local lint = require 'lint'
|
||||||
|
lint.linters_by_ft = {}
|
||||||
-- These configurations require the tools to be installed on your system (in your path).
|
|
||||||
-- See: https://mason-registry.dev/registry/list for a simple, automated way to install them.
|
|
||||||
-- ...Perhaps configure these in [["./nvim-lspconfig.lua"]]?
|
|
||||||
-- See: ':help MasonInstall' and ':help Mason'
|
|
||||||
|
|
||||||
lint.linters_by_ft = {
|
|
||||||
markdown = { 'markdownlint' },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
||||||
-- instead set linters_by_ft like this:
|
-- instead set linters_by_ft like this:
|
||||||
|
|
Loading…
Add table
Reference in a new issue