more cleanup
parent
7ca3a6947c
commit
cb64d9e1f2
@ -0,0 +1,40 @@
|
|||||||
|
return { -- blink autocompletion
|
||||||
|
'saghen/blink.cmp',
|
||||||
|
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||||
|
version = '*',
|
||||||
|
---@module 'blink.cmp'
|
||||||
|
---@type blink.cmp.Config
|
||||||
|
opts = {
|
||||||
|
completion = {
|
||||||
|
list = {
|
||||||
|
selection = {
|
||||||
|
preselect = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keymap = {
|
||||||
|
preset = 'enter',
|
||||||
|
['<Tab>'] = { 'select_next', 'fallback' },
|
||||||
|
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
||||||
|
},
|
||||||
|
appearance = {
|
||||||
|
nerd_font_variant = 'normal',
|
||||||
|
},
|
||||||
|
completion = {
|
||||||
|
documentation = { auto_show = true },
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
-- add lazydev to your completion providers
|
||||||
|
default = { 'lazydev', 'lsp', 'path', 'snippets', 'buffer' },
|
||||||
|
providers = {
|
||||||
|
lazydev = {
|
||||||
|
name = 'LazyDev',
|
||||||
|
module = 'lazydev.integrations.blink',
|
||||||
|
-- make lazydev completions top priority (see `:h blink.cmp`)
|
||||||
|
score_offset = 100,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts_extend = { 'sources.default' },
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
return { -- FZF (Telescope replacement)
|
||||||
|
'ibhagwan/fzf-lua',
|
||||||
|
-- optional for icon support
|
||||||
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
|
-- or if using mini.icons/mini.nvim
|
||||||
|
-- dependencies = { 'echasnovski/mini.icons' },
|
||||||
|
opts = {},
|
||||||
|
-- [[ fzf keybinds]]
|
||||||
|
config = function()
|
||||||
|
local fzf = require 'fzf-lua'
|
||||||
|
vim.keymap.set('n', '<leader>sw', fzf.grep_cword, { desc = '[S]earch [W]ord' })
|
||||||
|
vim.keymap.set('n', '<leader>sf', fzf.files, { desc = '[S]earch [F]iles' })
|
||||||
|
vim.keymap.set('n', '<leader>sg', fzf.live_grep, { desc = '[S]earch by [G]rep' })
|
||||||
|
vim.keymap.set('n', '<leader>sg', fzf.live_grep, { desc = '[S]earch by [G]rep' })
|
||||||
|
vim.keymap.set('n', '<leader>sr', fzf.resume, { desc = '[S]earch [R]esume' })
|
||||||
|
vim.keymap.set('n', '<leader>/', fzf.blines, { desc = '[/] Fuzzily search in current buffer' })
|
||||||
|
end,
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
return { -- DAP for Godot - https://docs.godotengine.org/en/stable/tutorials/editor/external_editor.html#lsp-dap-support
|
||||||
|
'mfussenegger/nvim-dap',
|
||||||
|
config = function()
|
||||||
|
local dap = require 'dap'
|
||||||
|
dap.adapters.godot = {
|
||||||
|
type = 'server',
|
||||||
|
host = '127.0.0.1',
|
||||||
|
port = 6006,
|
||||||
|
}
|
||||||
|
|
||||||
|
dap.configurations.gdscript = {
|
||||||
|
{
|
||||||
|
launch_game_instance = false,
|
||||||
|
launch_scene = false,
|
||||||
|
name = 'Launch scene',
|
||||||
|
project = '${workspaceFolder}',
|
||||||
|
request = 'launch',
|
||||||
|
type = 'godot',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
Loading…
Reference in New Issue