Added snippet to add tags to documents

This commit is contained in:
Nicholas Novak
2023-02-07 11:51:44 -08:00
parent c2b8d62544
commit 2ee6a6f48d
3 changed files with 53 additions and 1 deletions
+1 -1
View File
@@ -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
+4
View File
@@ -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
+48
View File
@@ -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