windows stuff

This commit is contained in:
Zackarias Montell
2025-05-14 14:47:41 +02:00
parent e5b2fbb1bc
commit 50cc1c6b93
3 changed files with 212 additions and 20 deletions

View File

@@ -727,7 +727,7 @@ require('lazy').setup({
-- <c-k>: Toggle signature help
--
-- See :h blink-cmp-config-keymap for defining your own keymap
preset = 'enter',
preset = 'default',
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
@@ -787,6 +787,7 @@ require('lazy').setup({
-- enable on commandline
cmdline = { enabled = true },
},
opts_extend = { 'sources.default' },
},
{ -- You can easily change to a different colorscheme.
@@ -872,7 +873,6 @@ require('lazy').setup({
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
},
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
-- init.lua. If you want these files, they are in the repository, so you can just download them and
-- place them in the correct locations.
@@ -920,14 +920,15 @@ require('lazy').setup({
},
},
})
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if client:supports_method 'textDocument/completion' then
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
end
end,
})
-- NOTE: Disabeling the built in cmp in favor of blink
-- vim.api.nvim_create_autocmd('LspAttach', {
-- callback = function(ev)
-- local client = vim.lsp.get_client_by_id(ev.data.client_id)
-- if client ~= nil and client:supports_method 'textDocument/completion' then
-- vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
-- end
-- end,
-- })
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et