mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 10:05:37 +02:00
[Feature] Make common_on_attach configurable (#1024)
This commit is contained in:
parent
796148fb00
commit
840e07c7fc
5 changed files with 40 additions and 3 deletions
|
@ -50,6 +50,17 @@ O.treesitter.ensure_installed = "maintained"
|
|||
O.treesitter.ignore_install = { "haskell" }
|
||||
O.treesitter.highlight.enabled = true
|
||||
|
||||
-- generic LSP settings
|
||||
-- you can set a custom on_attach function that will be used for all the language servers
|
||||
-- See <https://github.com/neovim/nvim-lspconfig#keybindings-and-completion>
|
||||
-- O.lsp.on_attach_callback = function(client, bufnr)
|
||||
-- local function buf_set_option(...)
|
||||
-- vim.api.nvim_buf_set_option(bufnr, ...)
|
||||
-- end
|
||||
-- --Enable completion triggered by <c-x><c-o>
|
||||
-- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
|
||||
-- end
|
||||
|
||||
-- python
|
||||
O.lang.python.diagnostics.virtual_text = true
|
||||
O.lang.python.analysis.use_library_code_types = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue