From 2ee6a6f48de80909e1b09fb7af9b2900effb3db8 Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Tue, 7 Feb 2023 11:51:44 -0800 Subject: [PATCH] Added snippet to add tags to documents --- kitty/.config/kitty/kitty.conf | 2 +- nvim/.config/nvim/UltiSnips/tex.snippets | 4 ++ nvim/.config/nvim/init.lua | 48 ++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/kitty/.config/kitty/kitty.conf b/kitty/.config/kitty/kitty.conf index 194da8b..392ea5f 100644 --- a/kitty/.config/kitty/kitty.conf +++ b/kitty/.config/kitty/kitty.conf @@ -1,7 +1,7 @@ #font_family Source Code Pro #font_family Minecraft Mono font_family IBM Plex Mono -font_size 14.0 +font_size 16.0 # Gnome-shell style alt+tab number map alt+1 goto_tab 1 diff --git a/nvim/.config/nvim/UltiSnips/tex.snippets b/nvim/.config/nvim/UltiSnips/tex.snippets index c1ce545..8f1f399 100644 --- a/nvim/.config/nvim/UltiSnips/tex.snippets +++ b/nvim/.config/nvim/UltiSnips/tex.snippets @@ -29,6 +29,10 @@ snippet incfig "Include Figures" } endsnippet +snippet tags "Add tags" w +\def\tags{$1}$0 +endsnippet + snippet box "Box" \boxed{$1}$0 endsnippet diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 10397f1..1afeaae 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -57,6 +57,8 @@ require('packer').startup(function(use) use 'Julian/lean.nvim' + use 'OmniSharp/omnisharp-vim' + -- [Auto Formatting] -- Google Java auto-format @@ -422,6 +424,7 @@ local servers = { jdtls = {}, } + -- Setup neovim lua configuration require('neodev').setup() -- @@ -439,6 +442,8 @@ mason_lspconfig.setup { ensure_installed = vim.tbl_keys(servers), } +local pid = vim.fn.getpid() + mason_lspconfig.setup_handlers { function(server_name) require('lspconfig')[server_name].setup { @@ -447,6 +452,49 @@ mason_lspconfig.setup_handlers { settings = servers[server_name], } end, + + ['omnisharp'] = function() + require('lspconfig').omnisharp.setup { + cmd = { '/usr/bin/omnisharp' }, + + on_attach = on_attach, + capabilities = capabilities, + -- Enables support for reading code style, naming convention and analyzer + -- settings from .editorconfig. + enable_editorconfig_support = true, + + -- If true, MSBuild project system will only load projects for files that + -- were opened in the editor. This setting is useful for big C# codebases + -- and allows for faster initialization of code navigation features only + -- for projects that are relevant to code that is being edited. With this + -- setting enabled OmniSharp may load fewer projects and may thus display + -- incomplete reference lists for symbols. + enable_ms_build_load_projects_on_demand = false, + + -- Enables support for roslyn analyzers, code fixes and rulesets. + enable_roslyn_analyzers = true, + + -- Specifies whether 'using' directives should be grouped and sorted during + -- document formatting. + organize_imports_on_format = true, + + -- Enables support for showing unimported types and unimported extension + -- methods in completion lists. When committed, the appropriate using + -- directive will be added at the top of the current file. This option can + -- have a negative impact on initial completion responsiveness, + -- particularly for the first few completion sessions after opening a + -- solution. + enable_import_completion = false, + + -- Specifies whether to include preview versions of the .NET SDK when + -- determining which version to use for project loading. + sdk_include_prereleases = true, + + -- Only run analyzers against open files when 'enableRoslynAnalyzers' is + -- true + analyze_open_documents_only = false, + } + end, } -- Turn on lsp status information