Sudo write, nvim in browser, jsdoc ls and file browser etc.
This commit is contained in:
parent
f2d4ac35e0
commit
c34495ea00
19
init.lua
19
init.lua
|
|
@ -174,6 +174,13 @@ if vim.g.started_by_firenvim == true then
|
|||
--})
|
||||
end
|
||||
|
||||
-- Neogen Configuration
|
||||
require('neogen').setup {
|
||||
enabled = true, --if you want to disable Neogen
|
||||
input_after_comment = true, -- (default: true) automatic jump (with insert mode) on inserted annotation
|
||||
-- jump_map = "<C-e>" -- (DROPPED SUPPORT, see [here](#cycle-between-annotations) !) The keymap in order to jump in the annotation fields (in insert mode)
|
||||
}
|
||||
|
||||
-- LSP Configuration
|
||||
local lsp_zero = require('lsp-zero')
|
||||
-- https://lsp-zero.netlify.app/v3.x/language-server-configuration.html#default-keybindings
|
||||
|
|
@ -190,7 +197,13 @@ lspconfig.bashls.setup({})
|
|||
lspconfig.clangd.setup({})
|
||||
lspconfig.jdtls.setup({})
|
||||
lspconfig.eslint.setup({})
|
||||
lspconfig.ts_ls.setup({})
|
||||
lspconfig.ts_ls.setup({
|
||||
settings = {
|
||||
implicitProjectConfiguration = {
|
||||
checkJs = true
|
||||
},
|
||||
}
|
||||
})
|
||||
lspconfig.jedi_language_server.setup({})
|
||||
lspconfig.nixd.setup({})
|
||||
lspconfig.nginx_language_server.setup({})
|
||||
|
|
@ -244,6 +257,10 @@ lspconfig.cssls.setup {
|
|||
lspconfig.jsonls.setup {
|
||||
capabilities = capabilities,
|
||||
}
|
||||
|
||||
-- LSP Inline diagnostics
|
||||
require('tiny-inline-diagnostic').setup()
|
||||
vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics
|
||||
|
||||
local cmp = require('cmp')
|
||||
cmp.setup({
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
"danymat/neogen",
|
||||
config = true,
|
||||
-- Uncomment next line if you want to follow only stable versions
|
||||
-- version = "*"
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"rachartier/tiny-inline-diagnostic.nvim",
|
||||
event = "VeryLazy", -- Or `LspAttach`
|
||||
priority = 1000, -- needs to be loaded in first
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"wojciech-kulik/xcodebuild.nvim",
|
||||
dependencies = {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-tree/nvim-tree.lua", -- (optional) to manage project files
|
||||
"stevearc/oil.nvim", -- (optional) to manage project files
|
||||
"nvim-treesitter/nvim-treesitter", -- (optional) for Quick tests support (required Swift parser)
|
||||
},
|
||||
config = function()
|
||||
require("xcodebuild").setup({
|
||||
-- put some options here or leave it empty to use default settings
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Reference in New Issue