-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
289 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
return { | ||
{ "Hoffs/omnisharp-extended-lsp.nvim", lazy = true }, | ||
{ | ||
"nvim-treesitter/nvim-treesitter", | ||
opts = function(_, opts) | ||
if type(opts.ensure_installed) == "table" then | ||
vim.list_extend(opts.ensure_installed, { "c_sharp" }) | ||
end | ||
end, | ||
}, | ||
{ | ||
"nvimtools/none-ls.nvim", | ||
optional = true, | ||
opts = function(_, opts) | ||
local nls = require("null-ls") | ||
opts.sources = opts.sources or {} | ||
table.insert(opts.sources, nls.builtins.formatting.csharpier) | ||
end, | ||
}, | ||
|
||
{ | ||
"stevearc/conform.nvim", | ||
optional = true, | ||
opts = { | ||
formatters_by_ft = { | ||
cs = { "csharpier" }, | ||
}, | ||
formatters = { | ||
csharpier = { | ||
command = "dotnet-csharpier", | ||
args = { "--write-stdout" }, | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
"williamboman/mason.nvim", | ||
opts = function(_, opts) | ||
if type(opts.ensure_installed) == "table" then | ||
vim.list_extend(opts.ensure_installed, { "netcoredbg", "csharpier" }) | ||
end | ||
end, | ||
}, | ||
{ | ||
"neovim/nvim-lspconfig", | ||
opts = { | ||
servers = { | ||
omnisharp = { | ||
handlers = { | ||
["textDocument/definition"] = function(...) | ||
return require("omnisharp_extended").handler(...) | ||
end, | ||
}, | ||
keys = { | ||
{ | ||
"gd", | ||
function() | ||
require("omnisharp_extended").telescope_lsp_definitions() | ||
end, | ||
desc = "Goto Definition", | ||
}, | ||
}, | ||
enable_roslyn_analyzers = true, | ||
organize_imports_on_format = true, | ||
enable_import_completion = true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
return { | ||
{ | ||
"neovim/nvim-lspconfig", | ||
opts = { | ||
servers = { | ||
tailwindcss = { | ||
-- exclude a filetype from the default_config | ||
filetypes_exclude = { "markdown" }, | ||
-- add additional filetypes to the default_config | ||
filetypes_include = {}, | ||
-- to fully override the default_config, change the below | ||
-- filetypes = {} | ||
}, | ||
}, | ||
setup = { | ||
tailwindcss = function(_, opts) | ||
local tw = require("lspconfig.server_configurations.tailwindcss") | ||
opts.filetypes = opts.filetypes or {} | ||
|
||
-- Add default filetypes | ||
vim.list_extend(opts.filetypes, tw.default_config.filetypes) | ||
|
||
-- Remove excluded filetypes | ||
--- @param ft string | ||
opts.filetypes = vim.tbl_filter(function(ft) | ||
return not vim.tbl_contains(opts.filetypes_exclude or {}, ft) | ||
end, opts.filetypes) | ||
|
||
-- Add additional filetypes | ||
vim.list_extend(opts.filetypes, opts.filetypes_include or {}) | ||
end, | ||
}, | ||
}, | ||
}, | ||
{ | ||
"hrsh7th/nvim-cmp", | ||
dependencies = { | ||
{ "roobert/tailwindcss-colorizer-cmp.nvim", config = true }, | ||
}, | ||
opts = function(_, opts) | ||
-- original LazyVim kind icon formatter | ||
local format_kinds = opts.formatting.format | ||
opts.formatting.format = function(entry, item) | ||
format_kinds(entry, item) -- add icons | ||
return require("tailwindcss-colorizer-cmp").formatter(entry, item) | ||
end | ||
end, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
local Utils = require("beastvim.utils") | ||
|
||
---@class beastvim.features.lsp.ui | ||
local M = {} | ||
|
||
setmetatable(M, { | ||
__call = function(m, ...) | ||
return m.setup(...) | ||
end, | ||
}) | ||
|
||
function M.setup() | ||
local monokai_opts = Utils.plugin.opts("monokai-pro.nvim") | ||
|
||
-- LSP Handlers | ||
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { | ||
border = nil, | ||
title = "", | ||
}) | ||
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { | ||
border = nil, | ||
title = "concac", | ||
}) | ||
end | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.