Merge branch 'main' of https://git.fey.ink/fey.naomi/nvim.config
This commit is contained in:
commit
a004a76a70
3
init.lua
3
init.lua
@ -15,6 +15,9 @@ vim.opt.cursorline = true
|
|||||||
vim.opt.ignorecase = true
|
vim.opt.ignorecase = true
|
||||||
vim.opt.smartcase = true
|
vim.opt.smartcase = true
|
||||||
|
|
||||||
|
|
||||||
|
vim.g.maplocalleader = ','
|
||||||
|
|
||||||
-- bootstrap lazy
|
-- bootstrap lazy
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
|
|||||||
@ -40,6 +40,9 @@ lspconfig.nixd.setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
lspconfig.csharp_ls.setup({
|
lspconfig.csharp_ls.setup({
|
||||||
|
cmd_env = {
|
||||||
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1,
|
||||||
|
},
|
||||||
root_dir = function()
|
root_dir = function()
|
||||||
return vim.fs.root(0, ".git")
|
return vim.fs.root(0, ".git")
|
||||||
end,
|
end,
|
||||||
|
|||||||
@ -20,6 +20,8 @@ local function is_work()
|
|||||||
return vim.fn.hostname() == "SCHREWE"
|
return vim.fn.hostname() == "SCHREWE"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local is_termux = os.getenv('TERMUX_VERSION') ~= nil
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"zbirenbaum/copilot.lua",
|
"zbirenbaum/copilot.lua",
|
||||||
@ -29,10 +31,13 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"zbirenbaum/copilot-cmp",
|
"zbirenbaum/copilot-cmp",
|
||||||
|
enabled = is_work(),
|
||||||
opts = {},
|
opts = {},
|
||||||
|
enabled = is_work()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"yetone/avante.nvim",
|
"yetone/avante.nvim",
|
||||||
|
enabled = is_work(),
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
version = false,
|
version = false,
|
||||||
@ -42,6 +47,7 @@ return {
|
|||||||
auto_suggestions = false, -- Experimental stage
|
auto_suggestions = false, -- Experimental stage
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
enabled = is_work(),
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
@ -198,7 +204,10 @@ return {
|
|||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "rust", "cpp" },
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "rust", "cpp", "fennel" },
|
||||||
|
highlight = {
|
||||||
|
enable = true
|
||||||
|
}
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
build = function()
|
build = function()
|
||||||
@ -223,6 +232,7 @@ return {
|
|||||||
{ "<F2>", "<cmd>Neotree<CR>", desc = "View files", mode = { "n", "i", "x" } },
|
{ "<F2>", "<cmd>Neotree<CR>", desc = "View files", mode = { "n", "i", "x" } },
|
||||||
},
|
},
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
enabled = not is_termux
|
||||||
},
|
},
|
||||||
"direnv/direnv.vim",
|
"direnv/direnv.vim",
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,6 +4,12 @@ return {
|
|||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"olical/conjure",
|
||||||
|
config = function()
|
||||||
|
-- vim.g["conjure#filetype#fennel"] = "conjure.client.fennel.stdio"
|
||||||
|
end
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"windwp/nvim-ts-autotag",
|
"windwp/nvim-ts-autotag",
|
||||||
opts = {},
|
opts = {},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user