Copilot related updates
This commit is contained in:
@@ -51,8 +51,10 @@ require("lazy").setup({
|
||||
lazy = false,
|
||||
build = ":TSUpdate"
|
||||
},
|
||||
"gmlarumbe/tree-sitter-systemverilog",
|
||||
-- Copilot setup
|
||||
"github/copilot.vim",
|
||||
-- "github/copilot.vim",
|
||||
"zbirenbaum/copilot.lua",
|
||||
"ofseed/copilot-status.nvim",
|
||||
-- {
|
||||
-- "zbirenbaum/copilot-cmp",
|
||||
@@ -62,10 +64,38 @@ require("lazy").setup({
|
||||
-- }
|
||||
})
|
||||
|
||||
-- Coppilot settings
|
||||
-- * Disable by default
|
||||
vim.g.copilot_filetypes = {
|
||||
["*"] = false,
|
||||
}
|
||||
|
||||
-- Copilot.lua setup
|
||||
require("copilot").setup({
|
||||
panel = {
|
||||
auto_refresh = false,
|
||||
keymap = {
|
||||
accept = "<CR>",
|
||||
jump_prev = "[[",
|
||||
jump_next = "]]",
|
||||
refresh = "gr",
|
||||
open = "<M-CR>",
|
||||
},
|
||||
},
|
||||
suggestion = {
|
||||
auto_trigger = true,
|
||||
keymap = {
|
||||
accept = "<M-c>",
|
||||
prev = "<M-[>",
|
||||
next = "<M-]>",
|
||||
dismiss = "<C-]>",
|
||||
},
|
||||
},
|
||||
})
|
||||
-- Treesitter
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the listed parsers MUST always be installed)
|
||||
ensure_installed = { "verilog", "rust" },
|
||||
ensure_installed = { "comment", "perl", "ruby", "verilog", "verilog", "rust" },
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
@@ -103,6 +133,10 @@ require'nvim-treesitter.configs'.setup {
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
disable = { "verilog" }, -- Add verilog to the list
|
||||
},
|
||||
}
|
||||
|
||||
-- LuaLine
|
||||
@@ -274,6 +308,8 @@ vim.api.nvim_set_keymap('n', 'Q', 'gq', { noremap =
|
||||
vim.api.nvim_set_keymap('n', '<leader>td', 'i<C-R>=strftime(\'%Y/%m/%d\')<CR><Esc>', { noremap = 1 }) -- 'Insert [T]imestamp - [d]ate'
|
||||
vim.api.nvim_set_keymap('n', '<leader>tt', 'i<C-R>=strftime(\'%Y/%m/%d %H:%M:%S\')<CR><Esc>', { noremap = 1 }) -- 'Insert [T]imestamp - date[t]ime'
|
||||
|
||||
-- Copilot: Explicitly request for copilot suggestions in insert mode C-;
|
||||
vim.keymap.set('i', '<C-;>', '<Plug>(copilot-suggest)')
|
||||
vim.g.rainbow_active = 1 -- 0 if you want to enable it later via :RainbowToggle
|
||||
|
||||
-- vim.g.iosftrk_folddisable = 1 -- intel
|
||||
@@ -308,6 +344,8 @@ vim.g.nerdtree_tabs_open_on_gui_startup = 0
|
||||
-- vim.cmd("au! BufRead,BufNewFile *.sv,*.svh set filetype=verilog")
|
||||
vim.cmd("au! BufRead,BufNewFile *iosfsb_trk.out set filetype=iosfsbtrk")
|
||||
vim.cmd("au! BufRead,BufNewFile *iosf_trk.out set filetype=iosftrk")
|
||||
-- Disable Copilot by default
|
||||
vim.cmd("au! VimEnter * Copilot disable")
|
||||
|
||||
-- [[ Configure Telescope ]]
|
||||
-- See `:help telescope` and `:help telescope.setup()`
|
||||
|
Reference in New Issue
Block a user