Compare commits
2 commits
4eb88a2417
...
96c879ee56
| Author | SHA1 | Date | |
|---|---|---|---|
| 96c879ee56 | |||
| 2a5c7e3581 |
3 changed files with 22 additions and 2 deletions
5
init.lua
5
init.lua
|
|
@ -36,6 +36,11 @@ vim.keymap.set("n", "<Leader>x", ":.lua<CR>")
|
||||||
vim.keymap.set("v", "<Leader>x", ":lua<CR>")
|
vim.keymap.set("v", "<Leader>x", ":lua<CR>")
|
||||||
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
|
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
|
||||||
-- vim.api.nvim_set_keymap('i', '<C-k>', [[<C-x><C-o>]], {noremap = true})
|
-- vim.api.nvim_set_keymap('i', '<C-k>', [[<C-x><C-o>]], {noremap = true})
|
||||||
|
vim.keymap.set('v', '<C-Space>', '<Nop>', { desc = 'Stop Ctrl+Space from acting as W' })
|
||||||
|
vim.keymap.set('n', '<C-Space>', function()
|
||||||
|
vim.cmd('startinsert')
|
||||||
|
require('blink.cmp').show()
|
||||||
|
end)
|
||||||
|
|
||||||
-- Harpoon Setup and Settings
|
-- Harpoon Setup and Settings
|
||||||
local harpoon = require("harpoon")
|
local harpoon = require("harpoon")
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,9 @@ return {
|
||||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||||
--
|
--
|
||||||
-- See :h blink-cmp-config-keymap for defining your own keymap
|
-- See :h blink-cmp-config-keymap for defining your own keymap
|
||||||
keymap = { preset = 'default' },
|
keymap = { preset = 'default',
|
||||||
|
-- ['<C-Space'] = { 'show', 'show_documentation', 'hide' },
|
||||||
|
},
|
||||||
|
|
||||||
appearance = {
|
appearance = {
|
||||||
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
||||||
|
|
@ -44,8 +46,16 @@ return {
|
||||||
-- Default list of enabled providers defined so that you can extend it
|
-- Default list of enabled providers defined so that you can extend it
|
||||||
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
||||||
sources = {
|
sources = {
|
||||||
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
default = { 'lsp', 'path', 'snippets', 'buffer', 'datastar' },
|
||||||
|
providers = {
|
||||||
|
datastar = {
|
||||||
|
name = "datastar",
|
||||||
|
module = "datastar.cmp_source",
|
||||||
|
score_offset = 100,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
||||||
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
||||||
|
|
|
||||||
5
lua/plugins/datastar-nvim.lua
Normal file
5
lua/plugins/datastar-nvim.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
return {{
|
||||||
|
"WillEhrendreich/datastar.nvim",
|
||||||
|
ft = { "html" },
|
||||||
|
opts = {},
|
||||||
|
}}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue