csharp settings

This commit is contained in:
wooshdude
2024-12-09 22:59:46 -08:00
parent a55e5d45ea
commit e90584aa57
4 changed files with 47 additions and 1072 deletions
+10 -7
View File
@@ -4,12 +4,18 @@
"host": "127.0.0.1", "host": "127.0.0.1",
"filetypes": ["gdscript"], "filetypes": ["gdscript"],
"port": 6005 "port": 6005
},
"csharp-ls": {
"command": "csharp",
"filetypes": ["cs"],
"rootPatterns": ["*.csproj", ".vim/", ".git/", ".hg/"]
} }
}, },
"coc.preferences.formatOnSave": true, "coc.preferences.formatOnSave": true,
"suggest.floatConfig": { "suggest.floatConfig": {
"border": true, "border": true,
"rounded": true "rounded": true,
"maxHeight": 10
}, },
"semanticTokens.enable": true, "semanticTokens.enable": true,
"suggest.completionItemKindLabels": { "suggest.completionItemKindLabels": {
@@ -33,16 +39,13 @@
"file": " ", "file": " ",
"interface": "󱃖 " "interface": "󱃖 "
}, },
"coc.source.OmniSharp.enable": true,
"omnisharp.trace.server": "information",
"omnisharp.debug.server": true,
"omnisharp.path": "/usr/local/bin/omnisharp",
"diagnostic.enableMessage": "never", "diagnostic.enableMessage": "never",
"diagnostic.enable": true, "diagnostic.enable": true,
"diagnostic.errorSign": "", "diagnostic.errorSign": "",
"diagnostic.warningSign": "", "diagnostic.warningSign": "",
"diagnostic.infoSign": "", "diagnostic.infoSign": "",
"diagnostic.hintSign": "➤", "diagnostic.hintSign": "➤",
"diagnostic.virtualText": true, "diagnostic.virtualText": true,
"diagnostic.virtualTextAlign": "below",
"diagnostic.virtualTextCurrentLineOnly": true "diagnostic.virtualTextCurrentLineOnly": true
} }
+36 -12
View File
@@ -125,7 +125,7 @@ vim.keymap.set("n", "<C-k>", "<C-w><C-k>", { desc = "Move focus to the upper win
-- Buffers -- Buffers
vim.keymap.set("n", "tt", ":tabedit<Return><leader>n", { desc = "Create a new tab", silent = true }) vim.keymap.set("n", "tt", ":tabedit<Return><leader>n", { desc = "Create a new tab", silent = true })
vim.keymap.set("n", "te", ":BufferClose<Return>", { desc = "Close current tab", silent = true }) vim.keymap.set("n", "te", ":BufferClose!<Return>", { desc = "Close current tab", silent = true })
vim.keymap.set("n", "<tab>", ":BufferNext<Return>", { desc = "Next tab", silent = true }) vim.keymap.set("n", "<tab>", ":BufferNext<Return>", { desc = "Next tab", silent = true })
vim.keymap.set("n", "<S-tab>", ":BufferPrevious<Return>", { desc = "Previous tab", silent = true }) vim.keymap.set("n", "<S-tab>", ":BufferPrevious<Return>", { desc = "Previous tab", silent = true })
vim.keymap.set("n", "tl", ":BufferMoveNext<Return>", { desc = "Shift tab right", silent = true }) vim.keymap.set("n", "tl", ":BufferMoveNext<Return>", { desc = "Shift tab right", silent = true })
@@ -202,7 +202,7 @@ if vim.env.TMUX ~= nil then
pattern = "*", pattern = "*",
callback = function() callback = function()
local current_file = vim.fn.expand("%:t") local current_file = vim.fn.expand("%:t")
local tmux_command = string.format("tmux rename-window '📄 nvim - %s'", current_file) local tmux_command = string.format("tmux rename-window 'nvim'", current_file)
vim.fn.system(tmux_command) vim.fn.system(tmux_command)
end end
}) })
@@ -297,12 +297,6 @@ require("lazy").setup({
-- configuration here or empty for defaults -- configuration here or empty for defaults
}, },
}, },
{
"OmniSharp/omnisharp-vim",
init = function()
vim.g.OmniSharp_server_use_net6 = 1
end,
},
{ {
"rmagatti/auto-session", "rmagatti/auto-session",
lazy = false, lazy = false,
@@ -352,13 +346,18 @@ require("lazy").setup({
}, },
{ {
"romgrk/barbar.nvim", "romgrk/barbar.nvim",
config = function()
icons = {
button = "",
separator = { left = '', right = '' },
}
vim.g.barbar_auto_setup = false
end,
dependencies = { dependencies = {
"lewis6991/gitsigns.nvim", -- OPTIONAL: for git status "lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
"nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons "nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
}, },
init = function()
vim.g.barbar_auto_setup = false
end,
opts = { opts = {
-- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default: -- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default:
-- animation = true, -- animation = true,
@@ -564,7 +563,32 @@ require("lazy").setup({
}, },
-- LSP Plugins -- LSP Plugins
--{ "dense-analysis/ale" }, {
"OmniSharp/omnisharp-vim",
config = function()
vim.g.OmniSharp_server_use_net6 = 1
vim.g.OmniSharp_server_use_mono = 1
vim.g.Omnisharp_highlighting = 3
vim.g.OmniSharp_diagnostic_showid = 0
vim.g.OmniSharp_diagnostic_overrides = {
CS8019 = { type = 'None' },
}
end,
},
{
"dense-analysis/ale",
config = function()
vim.g.ale_sign_column_always = 1
vim.g.ale_sign_error = ''
vim.g.ale_sign_warning = ''
vim.b.ale_linters = { cs = { "OmniSharp" } }
vim.g.ale_linters_explicit = 1
vim.g.ale_echo_msg_error_str = ''
vim.g.ale_echo_msg_warning_str = ''
vim.g.ale_cs_csc_assemblies = { ".mono" }
vim.g.ale_cs_mcsc_assemblies = { ".mono" }
end
},
{ {
"neoclide/coc.nvim", "neoclide/coc.nvim",
branch = "release", branch = "release",
File diff suppressed because it is too large Load Diff
+1
View File
@@ -31,6 +31,7 @@ yabai -m rule --add app="Godot" title=".*Settings.*" manage=off
yabai -m rule --add app="Godot" title=".*Create.*" manage=off yabai -m rule --add app="Godot" title=".*Create.*" manage=off
yabai -m rule --add app="Godot" title="Please Confirm..." manage=off yabai -m rule --add app="Godot" title="Please Confirm..." manage=off
yabai -m rule --add app="Godot" title=".*Save.*" manage=off yabai -m rule --add app="Godot" title=".*Save.*" manage=off
yabai -m rule --add app="Godot" title=".*Open.*" manage=off
# include apps # include apps
yabai -m rule --add app="^Unity$" manage=on yabai -m rule --add app="^Unity$" manage=on