mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-05 02:09:49 -05:00
Compare commits
2 commits
64ae6ef9ff
...
bd8d6c407b
| Author | SHA1 | Date | |
|---|---|---|---|
| bd8d6c407b | |||
| a578d94148 |
3 changed files with 51 additions and 5 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -181,11 +181,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743095683,
|
"lastModified": 1747542820,
|
||||||
"narHash": "sha256-gWd4urRoLRe8GLVC/3rYRae1h+xfQzt09xOfb0PaHSk=",
|
"narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5e5402ecbcb27af32284d4a62553c019a3a49ea6",
|
"rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,36 @@ vim.bo.expandtab = true
|
||||||
|
|
||||||
local lsp = require('user.lsp')
|
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 {
|
vim.lsp.start {
|
||||||
name = 'roslyn',
|
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(),
|
capabilities = lsp.make_client_capabilities(),
|
||||||
on_attach = lsp.on_attach,
|
on_attach = lsp.on_attach,
|
||||||
|
settings = {
|
||||||
|
FormattingOptions = {
|
||||||
|
EnableEditorConfigSupport = true,
|
||||||
|
},
|
||||||
|
MsBuild = {},
|
||||||
|
RenameOptions = {},
|
||||||
|
RoslynExtensionsOptions = {},
|
||||||
|
Sdk = {
|
||||||
|
IncludePrereleases = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,25 @@
|
||||||
local colors_file = io.open(os.getenv('HOME') .. '/.cache/mutagen/colors.json', 'r')
|
local colors_file = io.open(os.getenv('HOME') .. '/.cache/mutagen/colors.json', 'r')
|
||||||
if not colors_file then
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue