mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-04 17:59:50 -05:00
tried to get csharp working better, its a mess :P
This commit is contained in:
parent
64ae6ef9ff
commit
a578d94148
4 changed files with 58 additions and 5 deletions
|
|
@ -8,9 +8,36 @@ vim.bo.expandtab = true
|
|||
|
||||
local lsp = require('user.lsp')
|
||||
|
||||
-- TODO: make a helper function that does the wildcard matching to find the root dir
|
||||
local root_files = {
|
||||
'.git',
|
||||
-- '*.sln',
|
||||
-- '*.csproj',
|
||||
-- 'omnisharp.json',
|
||||
}
|
||||
|
||||
vim.lsp.start {
|
||||
name = 'roslyn',
|
||||
cmd = { 'OmniSharp', '-z', 'DotNet:enablePackageRestore=false', '--encoding', 'utf-8', '--languageserver' },
|
||||
cmd = {
|
||||
'OmniSharp',
|
||||
'-z',
|
||||
'DotNet:enablePackageRestore=false',
|
||||
'--encoding',
|
||||
'utf-8',
|
||||
'--languageserver',
|
||||
},
|
||||
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
|
||||
capabilities = lsp.make_client_capabilities(),
|
||||
on_attach = lsp.on_attach,
|
||||
settings = {
|
||||
FormattingOptions = {
|
||||
EnableEditorConfigSupport = true,
|
||||
},
|
||||
MsBuild = {},
|
||||
RenameOptions = {},
|
||||
RoslynExtensionsOptions = {},
|
||||
Sdk = {
|
||||
IncludePrereleases = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,6 +107,13 @@ cmd.packadd('cfilter') -- Allows filtering the quickfix list with :cfdo
|
|||
-- let sqlite.lua (which some plugins depend on) know where to find sqlite
|
||||
vim.g.sqlite_clib_path = require('luv').os_getenv('LIBSQLITE')
|
||||
|
||||
vim.filetype.add {
|
||||
extension = {
|
||||
razor = 'cs',
|
||||
cshtml = 'cs',
|
||||
},
|
||||
}
|
||||
|
||||
-- Vim Theme
|
||||
-- require('catppuccin').setup {
|
||||
-- flavour = 'macchiato',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,25 @@
|
|||
local colors_file = io.open(os.getenv('HOME') .. '/.cache/mutagen/colors.json', 'r')
|
||||
if not colors_file then
|
||||
-- vim.notify('Mutagen colors file not found', vim.log.levels.ERROR)
|
||||
local base16_colors = {
|
||||
base00 = '#131313',
|
||||
base01 = '#1f1f1f',
|
||||
base02 = '#2a2a2a',
|
||||
base03 = '#919191',
|
||||
base04 = '#c6c6c6',
|
||||
base05 = '#e2e2e2',
|
||||
base06 = '#e2e2e2',
|
||||
base07 = '#303030',
|
||||
base08 = '#ffb4ab',
|
||||
base09 = '#dec38c',
|
||||
base0A = '#e7bdb6',
|
||||
base0B = '#ffb4a8',
|
||||
base0C = '#705c2e',
|
||||
base0D = '#9c4236',
|
||||
base0E = '#775651',
|
||||
base0F = '#ba1a1a',
|
||||
}
|
||||
|
||||
require('base16-colorscheme').setup(base16_colors)
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue