Apply Patch
This commit is contained in:
parent
25dcd58627
commit
f9c808c3c5
13 changed files with 268 additions and 225 deletions
|
|
@ -1,30 +1,30 @@
|
||||||
{
|
{
|
||||||
"codeium.nvim": { "branch": "main", "commit": "ebed4f7cc8a18184d8332d421ca10bed5f7d59a1" },
|
"codeium.nvim": { "branch": "main", "commit": "821b570b526dbb05b57aa4ded578b709a704a38a" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "363243c03102a531a8203311d4f2ae704c620d9b" },
|
"conform.nvim": { "branch": "master", "commit": "b529dd4897c85c3188cc787084089a9d55843093" },
|
||||||
"deadcolumn.nvim": { "branch": "master", "commit": "897c905aef1a268ce4cc507d5cce048ed808fa7a" },
|
"deadcolumn.nvim": { "branch": "master", "commit": "6a144a32fd847a998095d2494f152e405c6ae7cb" },
|
||||||
"git-messenger.vim": { "branch": "master", "commit": "edc603d4cda7894a743e383e16c638e206d03148" },
|
"git-messenger.vim": { "branch": "master", "commit": "fd124457378a295a5d1036af4954b35d6b807385" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "9b36d497495436c135659902054ee637e0ba6021" },
|
"gitsigns.nvim": { "branch": "main", "commit": "d0f90ef51d4be86b824b012ec52ed715b5622e51" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "e10626f7fcd51ccd56d7ffc00883ba7e0aa28f78" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "7527af40ddd4a93a02911be570b32609b9d4ea53" },
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||||
"lsp_signature.nvim": { "branch": "master", "commit": "5b64964ed02098c85613ee3d20f96bed1dfb64cc" },
|
"lsp_signature.nvim": { "branch": "master", "commit": "d50e40b3bf9324128e71b0b7e589765ce89466d2" },
|
||||||
"lspsaga.nvim": { "branch": "main", "commit": "da8a66c53241876bba140980469876db3a183604" },
|
"lspsaga.nvim": { "branch": "main", "commit": "920b1253e1a26732e53fac78412f6da7f674671d" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
|
"lualine.nvim": { "branch": "master", "commit": "0c6cca9f2c63dadeb9225c45bc92bb95a151d4af" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "f75e877f5266e87523eb5a18fcde2081820d087b" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "c2682b0d9732bf52cbc34862056f143e71dc4a6d" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
|
||||||
"mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" },
|
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
|
||||||
"nord.nvim": { "branch": "master", "commit": "80c1e5321505aeb22b7a9f23eb82f1e193c12470" },
|
"nord.nvim": { "branch": "main", "commit": "57fb474a1d628bdf9d1e7964719464ed5675d7c7" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "12509903a5723a876abd65953109f926f4634c30" },
|
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "f98fa715acc975c2dd5fb5ba7ceddeb1cc725ad2" },
|
"nvim-lspconfig": { "branch": "master", "commit": "8adb3b5938f6074a1bcc36d3c3916f497d2e8ec4" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "ae298105122c87bbe0a36b1ad20b06d417c0433e" },
|
"nvim-surround": { "branch": "main", "commit": "8dd9150ca7eae5683660ea20cec86edcd5ca4046" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "d05881f65f0a653db8d830ccc4d2e07d6a720628" },
|
"nvim-tree.lua": { "branch": "master", "commit": "1c733e8c1957dc67f47580fe9c458a13b5612d5b" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "73b68cb943cd6718bdee318a70874620070255d4" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "402377242b04be3f4f0f3720bd952df86e946c30" },
|
"nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" },
|
||||||
"oil.nvim": { "branch": "master", "commit": "add50252b5e9147c0a09d36480d418c7e2737472" },
|
"oil.nvim": { "branch": "master", "commit": "5b6068aad7d2057dd399fac73b7fb2cdf23ccd6e" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
|
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
||||||
"refactoring.nvim": { "branch": "master", "commit": "2db6d378e873de31d18ade549c2edba64ff1c2e3" },
|
"refactoring.nvim": { "branch": "master", "commit": "9cd0186ffe76fe6abc64c0aafb775c8f776ab5ee" },
|
||||||
"stcursorword": { "branch": "main", "commit": "f6810ed5001eeee6061fdce77b292a5565823ded" },
|
"stcursorword": { "branch": "main", "commit": "f6810ed5001eeee6061fdce77b292a5565823ded" },
|
||||||
"telescope-menufacture": { "branch": "main", "commit": "751aca3f022039874790024b3cf25d643e335612" },
|
"telescope-menufacture": { "branch": "main", "commit": "751aca3f022039874790024b3cf25d643e335612" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "0e76a87ac51772569aec678dc74baa8e2a86100c" }
|
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
require('config.lazy')
|
require('config.lazy')
|
||||||
require('config.settings')
|
require('config.rest')
|
||||||
require('config.keybinds')
|
|
||||||
|
|
|
||||||
|
|
@ -32,4 +32,9 @@ require("lazy").setup({
|
||||||
install = { colorscheme = { "nord" } },
|
install = { colorscheme = { "nord" } },
|
||||||
-- automatically check for plugin updates
|
-- automatically check for plugin updates
|
||||||
checker = { enabled = false },
|
checker = { enabled = false },
|
||||||
|
|
||||||
|
change_detection = {
|
||||||
|
enabled = false,
|
||||||
|
notify = false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
2
nvim/lua/config/rest.lua
Normal file
2
nvim/lua/config/rest.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
require('config.settings')
|
||||||
|
require('config.keybinds')
|
||||||
|
|
@ -8,24 +8,42 @@ vim.o.tabstop = 4
|
||||||
vim.o.shiftwidth = 4
|
vim.o.shiftwidth = 4
|
||||||
|
|
||||||
-- Clipboard
|
-- Clipboard
|
||||||
|
local function paste()
|
||||||
|
return {
|
||||||
|
vim.fn.split(vim.fn.getreg(""), "\n"),
|
||||||
|
vim.fn.getregtype(""),
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
vim.o.clipboard = "unnamedplus"
|
vim.o.clipboard = "unnamedplus"
|
||||||
vim.api.nvim_exec(
|
-- vim.g.clipboard = {
|
||||||
[[
|
-- name = "OSC 52",
|
||||||
augroup YankHighlight
|
-- copy = {
|
||||||
autocmd!
|
-- ["+"] = require("vim.ui.clipboard.osc52").copy("+"),
|
||||||
autocmd TextYankPost * silent! lua vim.highlight.on_yank()
|
-- ["*"] = require("vim.ui.clipboard.osc52").copy("*"),
|
||||||
augroup end
|
-- },
|
||||||
]],
|
-- paste = {
|
||||||
false
|
-- ["+"] = paste,
|
||||||
)
|
-- ["*"] = paste,
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
-- vim.api.nvim_exec(
|
||||||
|
-- [[
|
||||||
|
-- augroup YankHighlight
|
||||||
|
-- autocmd!
|
||||||
|
-- autocmd TextYankPost * silent! lua vim.highlight.on_yank()
|
||||||
|
-- augroup end
|
||||||
|
-- ]],
|
||||||
|
-- false
|
||||||
|
-- )
|
||||||
|
|
||||||
-- Restore cursor
|
-- Restore cursor
|
||||||
local restore_cursor_augroup = vim.api.nvim_create_augroup("restore_cursor_shape_on_exit", { clear = true })
|
local restore_cursor_augroup = vim.api.nvim_create_augroup("restore_cursor_shape_on_exit", { clear = true })
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "VimLeave" }, {
|
vim.api.nvim_create_autocmd({ "VimLeave" }, {
|
||||||
group = restore_cursor_augroup,
|
group = restore_cursor_augroup,
|
||||||
desc = "restore the cursor shape on exit of neovim",
|
desc = "restore the cursor shape on exit of neovim",
|
||||||
command = "set guicursor=a:ver20",
|
command = "set guicursor=a:ver20",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Horizontal Split Line
|
-- Horizontal Split Line
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
return {
|
|
||||||
"Exafunction/codeium.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("codeium").setup({
|
|
||||||
enable_cmp_source = false,
|
|
||||||
virtual_text = {
|
|
||||||
enabled = true,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
@ -3,5 +3,5 @@ return {
|
||||||
cmd = { 'GitMessenger' },
|
cmd = { 'GitMessenger' },
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>gm", "<cmd>GitMessenger<cr>", desc = "[G]it [M]essenger" },
|
{ "<leader>gm", "<cmd>GitMessenger<cr>", desc = "[G]it [M]essenger" },
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,171 +1,181 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
cmd = "Mason",
|
cmd = "Mason",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
|
|
||||||
require("mason-lspconfig").setup_handlers({
|
if not vim.g.pre_load then
|
||||||
-- The first entry (without a key) will be the default handler
|
require("mason-lspconfig").setup({
|
||||||
-- and will be called for each installed server that doesn't have
|
-- The first entry (without a key) will be the default handler
|
||||||
-- a dedicated handler.
|
-- and will be called for each installed server that doesn't have
|
||||||
function(server_name) -- default handler (optional)
|
-- a dedicated handler.
|
||||||
require("lspconfig")[server_name].setup({})
|
-- function(server_name) -- default handler (optional)
|
||||||
end,
|
-- require("lspconfig")[server_name].setup({})
|
||||||
-- Next, you can provide a dedicated handler for specific servers.
|
-- end,
|
||||||
-- For example, a handler override for the `rust_analyzer`:
|
-- Next, you can provide a dedicated handler for specific servers.
|
||||||
-- ["rust_analyzer"] = function ()
|
-- For example, a handler override for the `rust_analyzer`:
|
||||||
-- require("rust-tools").setup {}
|
-- ["rust_analyzer"] = function ()
|
||||||
-- end
|
-- require("rust-tools").setup {}
|
||||||
})
|
-- end
|
||||||
end,
|
})
|
||||||
},
|
|
||||||
{
|
|
||||||
"ray-x/lsp_signature.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
opts = {},
|
|
||||||
config = function(_, opts)
|
|
||||||
require 'lsp_signature'.setup(opts)
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("LspAttach", {
|
|
||||||
callback = function(args)
|
|
||||||
local bufnr = args.buf
|
|
||||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
|
||||||
if vim.tbl_contains({ 'null-ls' }, client.name) then -- blacklist lsp
|
|
||||||
return
|
|
||||||
end
|
|
||||||
require("lsp_signature").on_attach({
|
|
||||||
-- ... setup options here ...
|
|
||||||
}, bufnr)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"stevearc/conform.nvim",
|
|
||||||
event = { "BufWritePre" },
|
|
||||||
cmd = { "ConformInfo" },
|
|
||||||
opts = function()
|
|
||||||
local mason_reg = require("mason-registry")
|
|
||||||
|
|
||||||
local formatters = {}
|
|
||||||
local formatters_by_ft = {}
|
|
||||||
|
|
||||||
-- add diff langue vs filetype
|
|
||||||
local keymap = {
|
|
||||||
["c++"] = "cpp",
|
|
||||||
["c#"] = "cs",
|
|
||||||
}
|
|
||||||
|
|
||||||
-- add dif conform vs mason
|
|
||||||
local name_map = {
|
|
||||||
["cmakelang"] = "cmake_format",
|
|
||||||
["deno"] = "deno_fmt",
|
|
||||||
["elm-format"] = "elm_format",
|
|
||||||
["gdtoolkit"] = "gdformat",
|
|
||||||
["nixpkgs-fmt"] = "nixpkgs_fmt",
|
|
||||||
["opa"] = "opa_fmt",
|
|
||||||
["php-cs-fixer"] = "php_cs_fixer",
|
|
||||||
["ruff"] = "ruff_format",
|
|
||||||
["sql-formatter"] = "sql_formatter",
|
|
||||||
["xmlformatter"] = "xmlformat",
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, pkg in pairs(mason_reg.get_installed_packages()) do
|
|
||||||
for _, type in pairs(pkg.spec.categories) do
|
|
||||||
-- only act upon a formatter
|
|
||||||
if type == "Formatter" then
|
|
||||||
-- if formatter doesn't have a builtin config, create our own from a generic template
|
|
||||||
if not require("conform").get_formatter_config(pkg.spec.name) then
|
|
||||||
-- the key of the entry to this table
|
|
||||||
-- is the name of the bare executable
|
|
||||||
-- the actual value may not be the absolute path
|
|
||||||
-- in some cases
|
|
||||||
local bin = next(pkg.spec.bin)
|
|
||||||
-- this should be replaced by a function
|
|
||||||
-- that quieries the configured mason install path
|
|
||||||
local prefix = vim.fn.stdpath("data") .. "/mason/bin/"
|
|
||||||
|
|
||||||
formatters[pkg.spec.name] = {
|
|
||||||
command = prefix .. bin,
|
|
||||||
args = { "$FILENAME" },
|
|
||||||
stdin = true,
|
|
||||||
require_cwd = false,
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
-- finally add the formatter to it's compatible filetype(s)
|
|
||||||
for _, ft in pairs(pkg.spec.languages) do
|
|
||||||
local ftl = string.lower(ft)
|
|
||||||
local ready = mason_reg.get_package(pkg.spec.name):is_installed()
|
|
||||||
if ready then
|
|
||||||
if keymap[ftl] ~= nil then
|
|
||||||
ftl = keymap[ftl]
|
|
||||||
end
|
|
||||||
if name_map[pkg.spec.name] ~= nil then
|
|
||||||
pkg.spec.name = name_map[pkg.spec.name]
|
|
||||||
end
|
|
||||||
formatters_by_ft[ftl] = formatters_by_ft[ftl] or {}
|
|
||||||
table.insert(formatters_by_ft[ftl], pkg.spec.name)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ray-x/lsp_signature.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {},
|
||||||
|
config = function(_, opts)
|
||||||
|
require("lsp_signature").setup(opts)
|
||||||
|
|
||||||
return {
|
vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
formatters = formatters,
|
callback = function(args)
|
||||||
formatters_by_ft = formatters_by_ft,
|
local bufnr = args.buf
|
||||||
|
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||||
|
if vim.tbl_contains({ "null-ls" }, client.name) then -- blacklist lsp
|
||||||
|
return
|
||||||
|
end
|
||||||
|
require("lsp_signature").on_attach({
|
||||||
|
-- ... setup options here ...
|
||||||
|
}, bufnr)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stevearc/conform.nvim",
|
||||||
|
event = { "BufWritePre" },
|
||||||
|
cmd = { "ConformInfo" },
|
||||||
|
opts = function()
|
||||||
|
local mason_reg = require("mason-registry")
|
||||||
|
|
||||||
|
local formatters = {}
|
||||||
|
local formatters_by_ft = {}
|
||||||
|
|
||||||
|
-- add diff langue vs filetype
|
||||||
|
local keymap = {
|
||||||
|
["c++"] = "cpp",
|
||||||
|
["c#"] = "cs",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- add dif conform vs mason
|
||||||
|
local name_map = {
|
||||||
|
["cmakelang"] = "cmake_format",
|
||||||
|
["deno"] = "deno_fmt",
|
||||||
|
["elm-format"] = "elm_format",
|
||||||
|
["gdtoolkit"] = "gdformat",
|
||||||
|
["nixpkgs-fmt"] = "nixpkgs_fmt",
|
||||||
|
["opa"] = "opa_fmt",
|
||||||
|
["php-cs-fixer"] = "php_cs_fixer",
|
||||||
|
["ruff"] = "ruff_format",
|
||||||
|
["sql-formatter"] = "sql_formatter",
|
||||||
|
["xmlformatter"] = "xmlformat",
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, pkg in pairs(mason_reg.get_installed_packages()) do
|
||||||
|
for _, type in pairs(pkg.spec.categories) do
|
||||||
|
-- only act upon a formatter
|
||||||
|
if type == "Formatter" then
|
||||||
|
-- if formatter doesn't have a builtin config, create our own from a generic template
|
||||||
|
if not require("conform").get_formatter_config(pkg.spec.name) then
|
||||||
|
-- the key of the entry to this table
|
||||||
|
-- is the name of the bare executable
|
||||||
|
-- the actual value may not be the absolute path
|
||||||
|
-- in some cases
|
||||||
|
local bin = next(pkg.spec.bin)
|
||||||
|
-- this should be replaced by a function
|
||||||
|
-- that quieries the configured mason install path
|
||||||
|
local prefix = vim.fn.stdpath("data") .. "/mason/bin/"
|
||||||
|
|
||||||
|
formatters[pkg.spec.name] = {
|
||||||
|
command = prefix .. bin,
|
||||||
|
args = { "$FILENAME" },
|
||||||
|
stdin = true,
|
||||||
|
require_cwd = false,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
-- finally add the formatter to it's compatible filetype(s)
|
||||||
|
for _, ft in pairs(pkg.spec.languages) do
|
||||||
|
local ftl = string.lower(ft)
|
||||||
|
local ready = mason_reg.get_package(pkg.spec.name):is_installed()
|
||||||
|
if ready then
|
||||||
|
if keymap[ftl] ~= nil then
|
||||||
|
ftl = keymap[ftl]
|
||||||
|
end
|
||||||
|
if name_map[pkg.spec.name] ~= nil then
|
||||||
|
pkg.spec.name = name_map[pkg.spec.name]
|
||||||
|
end
|
||||||
|
formatters_by_ft[ftl] = formatters_by_ft[ftl] or {}
|
||||||
|
table.insert(formatters_by_ft[ftl], pkg.spec.name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
formatters = formatters,
|
||||||
|
formatters_by_ft = formatters_by_ft,
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>fm",
|
||||||
|
function()
|
||||||
|
require("conform").format({ async = true })
|
||||||
|
end,
|
||||||
|
mode = "",
|
||||||
|
desc = "Format buffer",
|
||||||
|
},
|
||||||
|
-- {
|
||||||
|
-- "<leader>ca",
|
||||||
|
-- function()
|
||||||
|
-- vim.lsp.buf.code_action()
|
||||||
|
-- end,
|
||||||
|
-- mode = "",
|
||||||
|
-- desc = "Code Action",
|
||||||
|
-- },
|
||||||
|
{
|
||||||
|
"<leader>rn",
|
||||||
|
function()
|
||||||
|
vim.lsp.buf.rename()
|
||||||
|
end,
|
||||||
|
mode = "",
|
||||||
|
desc = "[R]e[N]ame",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gd",
|
||||||
|
function()
|
||||||
|
vim.lsp.buf.definition()
|
||||||
|
end,
|
||||||
|
mode = "",
|
||||||
|
desc = "[G]oto [D]efinition",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gD",
|
||||||
|
function()
|
||||||
|
vim.lsp.buf.declaration()
|
||||||
|
end,
|
||||||
|
mode = "",
|
||||||
|
desc = "[G]oto [D]eclaration",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>ih",
|
||||||
|
function()
|
||||||
|
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({0}),{0})
|
||||||
|
end,
|
||||||
|
mode = "",
|
||||||
|
desc = "Toggle [I]nlay [H]ints"
|
||||||
}
|
}
|
||||||
end,
|
},
|
||||||
keys = {
|
},
|
||||||
{
|
|
||||||
"<leader>fm",
|
|
||||||
function()
|
|
||||||
require("conform").format({ async = true })
|
|
||||||
end,
|
|
||||||
mode = "",
|
|
||||||
desc = "Format buffer",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>ca",
|
|
||||||
function()
|
|
||||||
vim.lsp.buf.code_action()
|
|
||||||
end,
|
|
||||||
mode = "",
|
|
||||||
desc = "Code Action",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rn",
|
|
||||||
function()
|
|
||||||
vim.lsp.buf.rename()
|
|
||||||
end,
|
|
||||||
mode = "",
|
|
||||||
desc = "[R]e[N]ame",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"gd",
|
|
||||||
function()
|
|
||||||
vim.lsp.buf.definition()
|
|
||||||
end,
|
|
||||||
mode = "",
|
|
||||||
desc = "[G]oto [D]efinition",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"gD",
|
|
||||||
function()
|
|
||||||
vim.lsp.buf.declaration()
|
|
||||||
end,
|
|
||||||
mode = "",
|
|
||||||
desc = "[G]oto [D]eclaration",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ return {
|
||||||
code_action = '⋯',
|
code_action = '⋯',
|
||||||
expand = '+',
|
expand = '+',
|
||||||
collapse = '-'
|
collapse = '-'
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|
@ -18,5 +18,9 @@ return {
|
||||||
{ "<leader>fi", "<cmd>Lspsaga finder<cr>", desc = "LSP Find References" },
|
{ "<leader>fi", "<cmd>Lspsaga finder<cr>", desc = "LSP Find References" },
|
||||||
{ "<leader>ci", "<cmd>Lspsaga incoming_calls<cr>", desc = "Incoming Calls" },
|
{ "<leader>ci", "<cmd>Lspsaga incoming_calls<cr>", desc = "Incoming Calls" },
|
||||||
{ "<leader>co", "<cmd>Lspsaga outgoing_calls<cr>", desc = "Outgoing Calls" },
|
{ "<leader>co", "<cmd>Lspsaga outgoing_calls<cr>", desc = "Outgoing Calls" },
|
||||||
|
{ "<leader>ca", "<cmd>Lspsaga code_action<cr>", desc = "[C]ode [A]ction" },
|
||||||
|
{ "<leader>cd", "<cmd>Lspsaga diagnostic_jump_next<cr>", desc = "[C]ode [D]iagnostics Next" },
|
||||||
|
{ "<leader>cD", "<cmd>Lspsaga diagnostic_jump_prev<cr>", desc = "[C]ode [D]iagnostics Prev" },
|
||||||
|
{ "<leader>cr", "<cmd>Lspsaga finder<cr>", desc = "[C]ode [R]eferences" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
return {
|
return {
|
||||||
'shaunsingh/nord.nvim',
|
"gbprod/nord.nvim",
|
||||||
config = function()
|
lazy = false,
|
||||||
vim.cmd [[colorscheme nord]]
|
priority = 1000,
|
||||||
end
|
config = function()
|
||||||
|
require("nord").setup({})
|
||||||
|
vim.cmd.colorscheme("nord")
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ return {
|
||||||
require("nvim-tree").setup()
|
require("nvim-tree").setup()
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<M-n>", "<cmd>NvimTreeToggle<cr>", desc = "Toggle [N]vimTree" },
|
{ "<M-n>", "<cmd>NvimTreeFindFileToggle<cr>", desc = "Toggle [N]vimTree" },
|
||||||
{ "<leader>nr", "<cmd>NvimTreeRefresh<cr>", desc = "[N]vimTree [R]efresh" },
|
{ "<leader>nr", "<cmd>NvimTreeRefresh<cr>", desc = "[N]vimTree [R]efresh" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ return {
|
||||||
local builtin = require("telescope.builtin")
|
local builtin = require("telescope.builtin")
|
||||||
vim.keymap.set("n", "<leader>sf", require('telescope').extensions.menufacture.find_files, { desc = "[S]earch [F]iles" })
|
vim.keymap.set("n", "<leader>sf", require('telescope').extensions.menufacture.find_files, { desc = "[S]earch [F]iles" })
|
||||||
vim.keymap.set("n", "<leader>sg", require('telescope').extensions.menufacture.live_grep, { desc = "[S]earch [G]rep" })
|
vim.keymap.set("n", "<leader>sg", require('telescope').extensions.menufacture.live_grep, { desc = "[S]earch [G]rep" })
|
||||||
|
vim.keymap.set("n", "<leader>sw", require('telescope').extensions.menufacture.grep_string, { desc = "[S]earch [W]ord under cursor" })
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>/", function()
|
vim.keymap.set("n", "<leader>/", function()
|
||||||
-- You can pass additional configuration to Telescope to change the theme, layout, etc.
|
-- You can pass additional configuration to Telescope to change the theme, layout, etc.
|
||||||
|
|
|
||||||
16
nvim/lua/plugins/windsurf.lua
Normal file
16
nvim/lua/plugins/windsurf.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
return {
|
||||||
|
"Exafunction/codeium.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
enable_cmp_source = false,
|
||||||
|
virtual_text = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
api = {
|
||||||
|
host = "codingbuddy.onprem.gic.ericsson.se",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue