neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
10.54k stars 2.07k forks source link

autocmd CursorHold not highlighting #813

Closed ranjithshegde closed 3 years ago

ranjithshegde commented 3 years ago

How to reproduce the problem from neovim startup

  1. Use config recommended in the README for on_attach function (it first did not work on my custom function, then i reverted to readme to eliminate any config-blindess or silliness from my side)
  2. place cursor on any symbol (or any text)

Actual behaviour

No highlight on CursorHold Tried _:lua vim.lsp.buf.document_highlight() and it does its job. It even respects the CursorMoved augroup

This isnt a new error There are reports on neovim and lsp-status What is new is it worked until yesterday and I havent changed anything in the meantime (in my config)

Expected behaviour

Highlight on CursorHold

Health check

Checkhealth result health#scnvim#check ======================================================================== ## scnvim - OK: SCNvim classes installed: /home/ranjith/.local/share/SuperCollider/Extensions/scide_scnvim - OK: has("timers") - success - INFO: sclang executable: /usr/bin/sclang - INFO: Could not find scdoc render program. See :help |scnvim-help-system| for more information. This is an optional dependency and only needed for SCDoc integration. health#floaterm#check ======================================================================== ## common - INFO: Platform: linux - INFO: Nvim: NVIM v0.5.0-dev+1191-gf89bfa686 - INFO: Plugin: ae7eea5 ## terminal - OK: Terminal emulator is available ## floating - OK: Floating window is available health#vimtex#check ======================================================================== ## VimTeX - OK: Vim version should have full support! - OK: General viewer should work properly! - OK: Compiler should work! health#nvim_treesitter#check ======================================================================== ## Installation - OK: `tree-sitter` found 0.19.4 (6dd41e2e45f8b4a00fda21f28bc0ebc6b172ffed) (parser generator, only needed for :TSInstallFromGrammar) - OK: `git` executable found. - OK: `cc` executable found. ## Parser/Features H L F I - query ✓ ✓ ✓ ✓ - c ✓ ✓ ✓ ✓ - cpp ✓ ✓ ✓ ✓ - json ✓ ✓ ✓ ✓ - yaml ✓ ✓ ✓ ✓ - toml ✓ ✓ ✓ ✓ - bash ✓ ✓ ✓ . - supercollider ✓ ✓ ✓ ✓ - lua ✓ ✓ ✓ ✓ - html ✓ ✓ ✓ ✓ - css ✓ . ✓ ✓ Legend: H[ighlight], L[ocals], F[olds], I[ndents] +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} health#lspconfig#check ======================================================================== ## Checking language server protocol configuration - INFO: efm: configuration checked. - INFO: clangd: configuration checked. - INFO: diagnosticls: configuration checked. - INFO: ccls: configuration checked. - INFO: sumneko_lua: configuration checked. - INFO: pyls: configuration checked. - INFO: bashls: configuration checked. - INFO: cssls: configuration checked. - INFO: yamlls: configuration checked. - INFO: jsonls: configuration checked. - INFO: vimls: configuration checked. - INFO: cmake: configuration checked. - INFO: texlab: configuration checked. health#completion_nvim#check ======================================================================== ## general - OK: neovim version is supported ## completion source - OK: all completion sources are valid ## snippet source - OK: You are using vim-vsnip as your snippet source health#nvim#check ======================================================================== ## Configuration - OK: no issues found ## Performance - OK: Build type: RelWithDebInfo ## Remote Plugins - OK: Up to date ## terminal - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177 - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~ health#provider#check ======================================================================== ## Clipboard (optional) - OK: Clipboard tool found: xclip ## Python 2 provider (optional) - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics. - ERROR: Python provider error: - ADVICE: - provider/pythonx: Could not load Python 2: python2 not found in search path or not executable. python2.7 not found in search path or not executable. python2.6 not found in search path or not executable. /usr/bin/python is Python 3.9 and cannot provide Python 2. - INFO: Executable: Not found ## Python 3 provider (optional) - INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment. - INFO: Executable: /usr/bin/python3 - INFO: Python version: 3.9.2 - INFO: pynvim version: 0.4.3 - OK: Latest pynvim is installed. ## Python virtualenv - OK: no $VIRTUAL_ENV ## Ruby provider (optional) - WARNING: `ruby` and `gem` must be in $PATH. - ADVICE: - Install Ruby and verify that `ruby` and `gem` commands work. ## Node.js provider (optional) - INFO: Node.js: v15.12.0 - INFO: Nvim node.js host: /home/ranjith/.local/share/npm/lib/node_modules/neovim/bin/cli.js - OK: Latest "neovim" npm/yarn package is installed: 4.9.0 ## Perl provider (optional) - ERROR: perl provider error: - ADVICE: - "Neovim::Ext" cpan module is not installed

LSP log

Log file [ START ] 2021-03-30T09:45:05+0200 ] LSP logging initiated [ INFO ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:311 ] "Starting RPC client" { args = {}, cmd = "efm-langserver", extra = {}} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:659 ] "LSP[efm]" "initialize_params" { capabilities = { callHierarchy = { dynamicRegistration = false, = <1>{ __tostring = } }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, = }, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, clientInfo = { name = "Neovim", version = "0.5.0" }, initializationOptions = { documentFormatting = true, =
}, processId = 14382, rootPath = "/home/ranjith/Nextcloud/Backup", rootUri = "file:///home/ranjith/Nextcloud/Backup", trace = "off", workspaceFolders = { { name = "/home/ranjith/Nextcloud/Backup", uri = "file:///home/ranjith/Nextcloud/Backup" } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { callHierarchy = { dynamicRegistration = false, = <1>{ __tostring = } }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, =
}, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, clientInfo = { name = "Neovim", version = "0.5.0" }, initializationOptions = { documentFormatting = true, =
}, processId = 14382, rootPath = "/home/ranjith/Nextcloud/Backup", rootUri = "file:///home/ranjith/Nextcloud/Backup", trace = "off", workspaceFolders = { { name = "/home/ranjith/Nextcloud/Backup", uri = "file:///home/ranjith/Nextcloud/Backup" } } }} [ INFO ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:311 ] "Starting RPC client" { args = { "-E", "/usr/bin/lua-language-server/main.lua" }, cmd = "/usr/bin/lua-language-server", extra = {}} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:659 ] "LSP[sumneko_lua]" "initialize_params" { capabilities = { callHierarchy = { dynamicRegistration = false, = <1>{ __tostring = } }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, =
}, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, clientInfo = { name = "Neovim", version = "0.5.0" }, initializationOptions = vim.empty_dict(), processId = 14382, rootPath = "/home/ranjith/Nextcloud/Backup", rootUri = "file:///home/ranjith/Nextcloud/Backup", trace = "off", workspaceFolders = { { name = "/home/ranjith/Nextcloud/Backup", uri = "file:///home/ranjith/Nextcloud/Backup" } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { callHierarchy = { dynamicRegistration = false, = <1>{ __tostring = } }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, =
}, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, clientInfo = { name = "Neovim", version = "0.5.0" }, initializationOptions = vim.empty_dict(), processId = 14382, rootPath = "/home/ranjith/Nextcloud/Backup", rootUri = "file:///home/ranjith/Nextcloud/Backup", trace = "off", workspaceFolders = { { name = "/home/ranjith/Nextcloud/Backup", uri = "file:///home/ranjith/Nextcloud/Backup" } } }} [ ERROR ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:458 ] "rpc" "efm-langserver" "stderr" "2021/03/30 09:45:06 efm-langserver: no configuration file\n2021/03/30 09:45:06 efm-langserver: reading on stdin, writing on stdout\n" [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : \nCached files: 0/0\nMemory usage: 2M\n" }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 1, jsonrpc = "2.0", result = { capabilities = { definitionProvider = true, documentFormattingProvider = true, textDocumentSync = 1, workspace = { workspaceFolders = { changeNotifications = true, supported = true } } } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 1, jsonrpc = "2.0", result = { capabilities = { codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor.rewrite", "refactor.extract" }, resolveProvider = false }, completionProvider = { resolveProvider = true, triggerCharacters = { "\t", "\n", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " " } }, definitionProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "\n" }, documentSymbolProvider = true, executeCommandProvider = { commands = { "lua.removeSpace:14390", "lua.solve:14390", "lua.jsonToLua:14390" } }, foldingRangeProvider = true, hoverProvider = true, referencesProvider = true, renameProvider = { prepareProvider = true }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true }, workspace = {}, workspaceSymbolProvider = true }, serverInfo = { name = "sumneko.lua" } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/report" { text = "😺Lua", tooltip = "Workspace : \nCached files: 0/0\nMemory usage: 2M\n"} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "initialized", params = { [true] = 6 }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "workspace/didChangeConfiguration", params = { settings = { languages = { lua = { { formatCommand = "lua-format -i --keep-simple-function-one-line --break-after-operator --no-keep-simple-control-block-one-line --column-limit=100", formatStdin = true } }, = <1>{ __tostring = } }, rootMarkers = { ".git/" }, =
} }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:686 ] "LSP[efm]" "server_capabilities" { definitionProvider = true, documentFormattingProvider = true, textDocumentSync = 1, workspace = { workspaceFolders = { changeNotifications = true, supported = true } }} [ INFO ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:687 ] "LSP[efm]" "initialized" { resolved_capabilities = { call_hierarchy = false, code_action = false, code_lens = false, code_lens_resolve = false, completion = false, declaration = false, document_formatting = true, document_highlight = false, document_range_formatting = false, document_symbol = false, execute_command = false, find_references = false, goto_definition = true, hover = false, implementation = false, rename = false, signature_help = false, signature_help_trigger_characters = {}, text_document_did_change = 1, text_document_open_close = true, text_document_save = true, text_document_save_include_text = false, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = false, workspace_folder_properties = { changeNotifications = true, supported = true }, workspace_symbol = false }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "lua", text = "local settings = {}\nlocal u = require('utils')\nlocal o = vim.o\n\nfunction settings.settings()\n settings.options()\n settings.vimwiki()\n settings.treesitter()\n -- settings.ultisnips()\n settings.lsp_settings()\n settings.langServers()\n settings.lsp_diagnostics()\n settings.telescope()\n settings.completion()\n settings.snippets()\nend\n\n-- **************Neovim basics ---------------------------------------------------------\n\nfunction settings.options()\n Cmd 'colo nvcode'\n Cmd 'set nohlsearch'\n -- Cmd 'highlight Normal guibg=none'\n Cmd 'hi LineNr ctermbg=none guibg=none'\n\n u.opt('w', 'number', true)\n u.opt('w', 'relativenumber', true)\n u.opt('w', 'cursorline', true)\n u.opt('o', 'hidden', true)\n u.opt('o', 'splitright', true)\n u.opt('o', 'splitbelow', true)\n u.opt('b', 'smartindent', true)\n u.opt('o', 'shiftround', true)\n u.opt('o', 'termguicolors', true)\n u.opt('o', 'signcolumn', 'true')\n u.opt('o', 'updatetime', 300)\n u.opt('o', 'scrolloff', 10)\n u.opt('b', 'shiftwidth', 2)\n u.opt('o', 'clipboard', [[unnamed,unnamedplus]])\n u.opt('o', 'completeopt', [[menuone,noinsert,noselect]])\n u.opt('o', 'fillchars', \"stlnc:»,vert:║,fold:·\")\n -- u.opt('o', 'guicursor', \"n:blinkwait60-blinkon175-blinkoff175,i-ci-ve:ver25\")\n o.shortmess = o.shortmess .. \"c\"\n G.termdebug_wide = 1\nend\n\n-- ******************************vimWiki Settings -------------------------------------------------\nfunction settings.vimwiki()\n local l = {}\n -- l.path = '$HOME/Documents/vimWiki'\n l.path = '$HOME/Nextcloud/Documents/vimWiki'\n l.syntax = 'markdown'\n l.ext = '.md'\n l.auto_tags = 1\n l.auto_diary_index = 1\n l.auto_generate_tags = 1\n l.autowriteall = 1\n Cmd(\"let g:vimwiki_ext2syntax = {'.md':'markdown', '.markdown':'markdown','.mdown':'markdown'}\")\n G.vimwiki_filetypes = {'markdown'}\n G.vimwiki_list = {l}\n G.vimwiki_markdown_link_ext = 1\nend\n-- ******************************Sinppets -------------------------------------------------\n\n-- function settings.ultisnips()\n-- local snippet_directories = {\"UltiSnips\", \"scnvim-data\"}\n-- Var('UltiSnipsExpandTrigger', \"\")\n-- Var('UltiSnipsJumpForwardTrigger', \"\")\n-- Var('UltiSnipsJumpBackwardTrigger', \"\")\n-- Var('UltiSnipsSnippetDirectories', snippet_directories)\n-- end\n\nfunction settings.snippets()\n package.path = package.path ..\n \";/home/ranjith/.config/nvim/plugged/scnvim/scnvim-data/scnvim_snippets.lua\"\n require'snippets'.snippets = {supercollider = require 'scnvim_snippets'}\nend\n\n-- ************** TreeSitter ---------------------------------------------------------\nfunction settings.treesitter()\n -- require('indent_guides')\n require'nvim-treesitter.configs'.setup {\n highlight = {enable = true, use_languagetree = true},\n indent = {enable = true},\n incremental_selection = {\n enable = true,\n keymaps = {\n init_selection = \"gnn\",\n node_incremental = \"grn\",\n scope_incremental = \"grc\",\n node_decremental = \"grm\"\n }\n },\n textobjects = {\n select = {\n enable = true,\n keymaps = {\n [\"af\"] = \"@function.outer\",\n [\"if\"] = \"@function.inner\",\n [\"ac\"] = \"@class.outer\",\n [\"ic\"] = \"@class.inner\",\n ['aC'] = '@conditional.outer',\n ['iC'] = '@conditional.inner',\n ['ae'] = '@block.outer',\n ['ie'] = '@block.inner',\n ['al'] = '@loop.outer',\n ['il'] = '@loop.inner',\n ['is'] = '@statement.inner',\n ['as'] = '@statement.outer',\n ['ad'] = '@comment.outer',\n ['am'] = '@call.outer',\n ['im'] = '@call.inner',\n [\"iF\"] = {\n supercollider = \"(function_definition) @function\",\n cpp = \"(function_definition) @function\",\n c = \"(function_definition) @function\"\n }\n }\n },\n move = {\n enable = true,\n goto_next_start = {[\"]n\"] = \"@function.outer\", [\"]}\"] = \"@class.outer\"},\n goto_next_end = {[\"]N\"] = \"@function.outer\", [\"]{\"] = \"@class.outer\"},\n goto_previous_start = {[\"[n\"] = \"@function.outer\", [\"[{\"] = \"@class.outer\"},\n goto_previous_end = {[\"[N\"] = \"@function.outer\", [\"[}\"] = \"@class.outer\"}\n },\n swap = {\n enable = true,\n -- disable = {\"cpp\"},\n swap_next = {[\"sn\"] = \"@parameter.inner\"},\n swap_previous = {[\"sp\"] = \"@parameter.inner\"}\n }\n },\n\n playground = {enable = true, disable = {}, updatetime = 25, persist_queries = false},\n rainbow = {enable = true},\n refactor = {\n highlight_definitions = {enable = true},\n -- highlight_current_scope = {enable = true},\n navigation = {\n enable = true,\n keymaps = {\n goto_definition = \"gnd\",\n list_definitions = \"gnD\",\n list_definitions_toc = \"gO\",\n goto_next_usage = \"gn*\",\n goto_previous_usage = \"gn#\"\n }\n }\n\n }\n }\nend\n\n-- ************** Completion ---------------------------------------------------------\nfunction settings.completion()\n\n -- require'completion-treesitter'.init()\n G.completion_chain_complete_list = {\n default = {\n {complete_items = {'UltiSnips', 'lsp', 'snippet', 'snippets.nvim'}}, {mode = ''},\n {mode = ''}\n }\n }\n\n if Op(\"filetype\") == \"supercollider\" then\n -- Var('completion_enable_snippet', \"UltiSnips\")\n -- G.completion_enable_snippet = 'UltiSnips'\n G.completion_enable_snippet = 'snippets.nvim'\n else\n G.completion_enable_snippet = 'vim-vsnip'\n end\n\n Cmd('au BufEnter *.txt lua require\"completion\".on_attach()')\n Cmd('au BufEnter *.md lua require\"completion\".on_attach()')\n Cmd('au BufEnter *.scd lua require\"completion\".on_attach()')\nend\n\n-- ******************************Lsp Settings -------------------------------------------------\nfunction settings.lsp_settings()\n -- Autopairs, edited\n require('nvim-autopairs').setup()\n Lsp_status = require('lsp-status')\n Lsp_status.register_progress()\n Lsp = require 'lspconfig'\n local saga = require 'lspsaga'\n saga.init_lsp_saga()\n\n local highlight = {\n start = {\n {\"CursorHold\", \"\", [[lua vim.lsp.buf.document_highlight()]]},\n {\"CursorMoved\", \"\", [[lua vim.lsp.buf.clear_references()]]}\n }\n }\n\n -- -- Cmd(' augroup lsp_document_highlight')\n -- Cmd('autocmd! * ')\n -- Cmd('au CursorHold lua vim.lsp.buf.document_highlight()')\n -- Cmd('au CursorMoved lua vim.lsp.buf.clear_references()')\n -- Cmd('augroup END')\n\n All_attach = function(client, bufnr)\n require'completion'.on_attach(client)\n Lsp_status.on_attach(client)\n\n if client.resolved_capabilities.document_highlight then\n Cmd('hi LspReferenceRead cterm=bold ctermbg=red guibg=cyan')\n Cmd('hi LspReferenceText cterm=bold ctermbg=red guibg=grey')\n Cmd('hi LspReferenceWrite cterm=bold ctermbg=red guibg=pink')\n u.create_augroups(highlight)\n end\n end\n\n -- extending user-derfinined capabilities of LSP\n Capabilities = vim.lsp.protocol.make_client_capabilities()\n vim.tbl_extend('keep', Capabilities or {}, Lsp_status.capabilities)\n -- enable snippetSupport\n Capabilities.textDocument.completion.completionItem.snippetSupport = true;\n\n Cattach = function(client)\n local caps = client.resolved_capabilities\n caps.document_formatting = false\n caps.document_highlight = false\n caps.rename = false\n caps.hover = false\n caps.completion = false\n -- caps.publishDiagnostics = false\n end\n\n Lsp_status.config {\n -- sumneko_lua specific status\n select_symbol = function(cursor_pos, symbol)\n if symbol.valueRange then\n local value_range = {\n [\"start\"] = {character = 0, line = vim.fn.byte2line(symbol.valueRange[1])},\n [\"end\"] = {character = 0, line = vim.fn.byte2line(symbol.valueRange[2])}\n }\n return require(\"lsp-status.util\").in_range(cursor_pos, value_range)\n end\n end\n\n }\n\n require('lspkind').init()\nend\n\n-- ************** Language Servers-------------------------------------------------------\nfunction settings.langServers()\n local configs = {\n vimls = {on_attach = All_attach},\n bashls = {on_attach = All_attach},\n texlab = {on_attach = All_attach},\n efm = {\n init_options = {documentFormatting = true},\n filetypes = {\"lua\"},\n settings = {\n rootMarkers = {\".git/\"},\n languages = {\n lua = {\n {\n formatCommand = \"lua-format -i --keep-simple-function-one-line --break-after-operator --no-keep-simple-control-block-one-line --column-limit=100\",\n formatStdin = true\n }\n }\n }\n }\n },\n cssls = {on_attach = All_attach},\n yamlls = {on_attach = All_attach},\n jsonls = {on_attach = All_attach},\n pyls = {on_attach = All_attach},\n cmake = {on_attach = All_attach},\n clangd = {\n on_attach = All_attach,\n capabilities = Capabilities,\n cmd = {\n \"clangd\", \"--clang-tidy\", \"--background-index\", \"--suggest-missing-includes\",\n \"--all-scopes-completion\", \"--completion-style=detailed\"\n },\n commands = {CHover = {function() u.clang_hover() end}}\n },\n ccls = {\n on_attach = Cattach\n -- capabilities = Capabilities,\n -- init_options = {\n -- cache = {directory = \"/home/ranjith/.local/share/ccls\"},\n -- client = {snippetSupport = true}\n -- }\n },\n sumneko_lua = {\n on_attach = All_attach,\n cmd = {\n \"/usr/bin/lua-language-server\", \"-E\", \"/usr/bin/lua-language-server\" .. \"/main.lua\"\n },\n settings = {\n Lua = {\n runtime = {version = 'LuaJIT', path = vim.split(package.path, ';')},\n diagnostics = {globals = {'vim'}},\n workspace = {\n library = {\n [vim.fn.expand('$VIMRUNTIME/lua')] = true,\n [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true\n }\n }\n }\n }\n }\n }\n\n for ls, cfg in pairs(configs) do\n Lsp[ls].setup(cfg)\n end\nend\n\n-- ***********************LSP_Diagnostics---------------------------------------\n\nfunction settings.lsp_diagnostics()\n\n Lsp.diagnosticls.setup {\n cmd = {\"diagnostic-languageserver\", \"--stdio\"},\n filetypes = {\"sh\", \"markdown\", \"json\", \"yaml\", \"toml\"},\n init_options = {\n linters = {\n shellcheck = {\n command = \"shellcheck\",\n debounce = 100,\n args = {\"--format\", \"json\", \"-\"},\n sourceName = \"shellcheck\",\n parseJson = {\n line = \"line\",\n column = \"column\",\n endLine = \"endLine\",\n endColumn = \"endColumn\",\n message = \"${message} [${code}]\",\n security = \"level\"\n },\n securities = {\n error = \"error\",\n warning = \"warning\",\n info = \"info\",\n style = \"hint\"\n }\n },\n markdownlint = {\n command = \"markdownlint\",\n isStderr = true,\n debounce = 100,\n args = {\"--stdin\"},\n offsetLine = 0,\n offsetColumn = 0,\n sourceName = \"markdownlint\",\n formatLines = 1,\n formatPattern = {\n \"^.*?:\\\\s?(\\\\d+)(:(\\\\d+)?)?\\\\s(MD\\\\d{3}\\\\/[A-Za-z0-9-/]+)\\\\s(.*)$\",\n {line = 1, column = 3, message = {4}}\n }\n }\n },\n filetypes = {sh = \"shellcheck\", markdown = \"markdownlint\", vimwiki = \"markdownlint\"},\n formatters = {\n shfmt = {command = \"shfmt\", args = {\"-i\", \"2\", \"-bn\", \"-ci\", \"-sr\"}},\n prettier = {command = \"prettier\", args = {\"--stdin-filepath\", \"%filepath\"}}\n },\n formatFiletypes = {\n sh = \"shfmt\",\n json = \"prettier\",\n yaml = \"prettier\",\n toml = \"prettier\",\n markdown = \"prettier\"\n }\n }\n }\n -- Enable diagnostics\n vim.lsp.handlers[\"textDocument/publishDiagnostics\"] =\n vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {\n underline = true,\n virtual_text = true,\n signs = true,\n update_in_insert = false\n })\n\nend\n\n-- ************** Telescope ---------------------------------------------------------\nfunction settings.telescope()\n require('telescope').setup {}\n require'telescope'.load_extension('project')\n require('telescope').load_extension('snippets')\n\n local borders = {\n {'─', '│', '─', '│', '┌', '┐', '┘', '└'},\n prompt = {\"─\", \"│\", \" \", \"│\", '┌', '┐', \"│\", \"│\"},\n results = {\"─\", \"│\", \"─\", \"│\", \"├\", \"┤\", \"┘\", \"└\"},\n preview = {'─', '│', '─', '│', '┌', '┐', '┘', '└'}\n }\n No_preview = function()\n return require('telescope.themes').get_dropdown(\n {borderchars = borders, width = 0.5, previewer = false, prompt_title = false})\n end\n\n G.indent_blankline_buftype_exclude = {'terminal'}\n G.indent_blankline_filetype_exclude = {'packer', 'netrw'}\n -- G.indent_blankline_char = '▏'\n G.indent_blankline_use_treesitter = true\n G.indent_blankline_show_trailing_blankline_indent = false\n G.indent_blankline_show_current_context = true\n G.indent_blankline_context_patterns = {\n 'class', 'return', 'function', 'method', '^if', '^while', 'jsx_element', '^for', '^object',\n '^table', 'block', 'arguments', 'if_statement', 'else_clause', 'jsx_element',\n 'jsx_self_closing_element', 'try_statement', 'catch_clause', 'import_statement',\n 'operation_type'\n }\n\nend\n\nreturn settings\n", uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/settings/init.lua", version = 0 } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "initialized", params = { [true] = 6 }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "workspace/didChangeConfiguration", params = { settings = { Lua = { diagnostics = { globals = { "vim" }, = <1>{ __tostring = } }, runtime = { path = { "./?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/?.lua", "/usr/local/share/lua/5.1/?.lua", "/usr/local/share/lua/5.1/?/init.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?/init.lua" }, version = "LuaJIT", =
}, telemetry = { enable = false, =
}, workspace = { library = { ["/usr/share/nvim/runtime/lua"] = true, ["/usr/share/nvim/runtime/lua/vim/lsp"] = true, =
}, =
}, =
}, =
} }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:686 ] "LSP[sumneko_lua]" "server_capabilities" { codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor.rewrite", "refactor.extract" }, resolveProvider = false }, completionProvider = { resolveProvider = true, triggerCharacters = { "\t", "\n", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " " } }, definitionProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "\n" }, documentSymbolProvider = true, executeCommandProvider = { commands = { "lua.removeSpace:14390", "lua.solve:14390", "lua.jsonToLua:14390" } }, foldingRangeProvider = true, hoverProvider = true, referencesProvider = true, renameProvider = { prepareProvider = true }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true }, workspace = {}, workspaceSymbolProvider = true} [ INFO ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:687 ] "LSP[sumneko_lua]" "initialized" { resolved_capabilities = { call_hierarchy = false, code_action = { codeActionKinds = { "", "quickfix", "refactor.rewrite", "refactor.extract" }, resolveProvider = false }, code_lens = false, code_lens_resolve = false, completion = true, declaration = false, document_formatting = false, document_highlight = true, document_range_formatting = false, document_symbol = true, execute_command = true, find_references = true, goto_definition = true, hover = true, implementation = false, rename = true, signature_help = true, signature_help_trigger_characters = { "(", "," }, text_document_did_change = 2, text_document_open_close = true, text_document_save = false, text_document_save_include_text = false, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = false, workspace_folder_properties = { changeNotifications = false, supported = false }, workspace_symbol = true }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "lua", text = "local settings = {}\nlocal u = require('utils')\nlocal o = vim.o\n\nfunction settings.settings()\n settings.options()\n settings.vimwiki()\n settings.treesitter()\n -- settings.ultisnips()\n settings.lsp_settings()\n settings.langServers()\n settings.lsp_diagnostics()\n settings.telescope()\n settings.completion()\n settings.snippets()\nend\n\n-- **************Neovim basics ---------------------------------------------------------\n\nfunction settings.options()\n Cmd 'colo nvcode'\n Cmd 'set nohlsearch'\n -- Cmd 'highlight Normal guibg=none'\n Cmd 'hi LineNr ctermbg=none guibg=none'\n\n u.opt('w', 'number', true)\n u.opt('w', 'relativenumber', true)\n u.opt('w', 'cursorline', true)\n u.opt('o', 'hidden', true)\n u.opt('o', 'splitright', true)\n u.opt('o', 'splitbelow', true)\n u.opt('b', 'smartindent', true)\n u.opt('o', 'shiftround', true)\n u.opt('o', 'termguicolors', true)\n u.opt('o', 'signcolumn', 'true')\n u.opt('o', 'updatetime', 300)\n u.opt('o', 'scrolloff', 10)\n u.opt('b', 'shiftwidth', 2)\n u.opt('o', 'clipboard', [[unnamed,unnamedplus]])\n u.opt('o', 'completeopt', [[menuone,noinsert,noselect]])\n u.opt('o', 'fillchars', \"stlnc:»,vert:║,fold:·\")\n -- u.opt('o', 'guicursor', \"n:blinkwait60-blinkon175-blinkoff175,i-ci-ve:ver25\")\n o.shortmess = o.shortmess .. \"c\"\n G.termdebug_wide = 1\nend\n\n-- ******************************vimWiki Settings -------------------------------------------------\nfunction settings.vimwiki()\n local l = {}\n -- l.path = '$HOME/Documents/vimWiki'\n l.path = '$HOME/Nextcloud/Documents/vimWiki'\n l.syntax = 'markdown'\n l.ext = '.md'\n l.auto_tags = 1\n l.auto_diary_index = 1\n l.auto_generate_tags = 1\n l.autowriteall = 1\n Cmd(\"let g:vimwiki_ext2syntax = {'.md':'markdown', '.markdown':'markdown','.mdown':'markdown'}\")\n G.vimwiki_filetypes = {'markdown'}\n G.vimwiki_list = {l}\n G.vimwiki_markdown_link_ext = 1\nend\n-- ******************************Sinppets -------------------------------------------------\n\n-- function settings.ultisnips()\n-- local snippet_directories = {\"UltiSnips\", \"scnvim-data\"}\n-- Var('UltiSnipsExpandTrigger', \"\")\n-- Var('UltiSnipsJumpForwardTrigger', \"\")\n-- Var('UltiSnipsJumpBackwardTrigger', \"\")\n-- Var('UltiSnipsSnippetDirectories', snippet_directories)\n-- end\n\nfunction settings.snippets()\n package.path = package.path ..\n \";/home/ranjith/.config/nvim/plugged/scnvim/scnvim-data/scnvim_snippets.lua\"\n require'snippets'.snippets = {supercollider = require 'scnvim_snippets'}\nend\n\n-- ************** TreeSitter ---------------------------------------------------------\nfunction settings.treesitter()\n -- require('indent_guides')\n require'nvim-treesitter.configs'.setup {\n highlight = {enable = true, use_languagetree = true},\n indent = {enable = true},\n incremental_selection = {\n enable = true,\n keymaps = {\n init_selection = \"gnn\",\n node_incremental = \"grn\",\n scope_incremental = \"grc\",\n node_decremental = \"grm\"\n }\n },\n textobjects = {\n select = {\n enable = true,\n keymaps = {\n [\"af\"] = \"@function.outer\",\n [\"if\"] = \"@function.inner\",\n [\"ac\"] = \"@class.outer\",\n [\"ic\"] = \"@class.inner\",\n ['aC'] = '@conditional.outer',\n ['iC'] = '@conditional.inner',\n ['ae'] = '@block.outer',\n ['ie'] = '@block.inner',\n ['al'] = '@loop.outer',\n ['il'] = '@loop.inner',\n ['is'] = '@statement.inner',\n ['as'] = '@statement.outer',\n ['ad'] = '@comment.outer',\n ['am'] = '@call.outer',\n ['im'] = '@call.inner',\n [\"iF\"] = {\n supercollider = \"(function_definition) @function\",\n cpp = \"(function_definition) @function\",\n c = \"(function_definition) @function\"\n }\n }\n },\n move = {\n enable = true,\n goto_next_start = {[\"]n\"] = \"@function.outer\", [\"]}\"] = \"@class.outer\"},\n goto_next_end = {[\"]N\"] = \"@function.outer\", [\"]{\"] = \"@class.outer\"},\n goto_previous_start = {[\"[n\"] = \"@function.outer\", [\"[{\"] = \"@class.outer\"},\n goto_previous_end = {[\"[N\"] = \"@function.outer\", [\"[}\"] = \"@class.outer\"}\n },\n swap = {\n enable = true,\n -- disable = {\"cpp\"},\n swap_next = {[\"sn\"] = \"@parameter.inner\"},\n swap_previous = {[\"sp\"] = \"@parameter.inner\"}\n }\n },\n\n playground = {enable = true, disable = {}, updatetime = 25, persist_queries = false},\n rainbow = {enable = true},\n refactor = {\n highlight_definitions = {enable = true},\n -- highlight_current_scope = {enable = true},\n navigation = {\n enable = true,\n keymaps = {\n goto_definition = \"gnd\",\n list_definitions = \"gnD\",\n list_definitions_toc = \"gO\",\n goto_next_usage = \"gn*\",\n goto_previous_usage = \"gn#\"\n }\n }\n\n }\n }\nend\n\n-- ************** Completion ---------------------------------------------------------\nfunction settings.completion()\n\n -- require'completion-treesitter'.init()\n G.completion_chain_complete_list = {\n default = {\n {complete_items = {'UltiSnips', 'lsp', 'snippet', 'snippets.nvim'}}, {mode = ''},\n {mode = ''}\n }\n }\n\n if Op(\"filetype\") == \"supercollider\" then\n -- Var('completion_enable_snippet', \"UltiSnips\")\n -- G.completion_enable_snippet = 'UltiSnips'\n G.completion_enable_snippet = 'snippets.nvim'\n else\n G.completion_enable_snippet = 'vim-vsnip'\n end\n\n Cmd('au BufEnter *.txt lua require\"completion\".on_attach()')\n Cmd('au BufEnter *.md lua require\"completion\".on_attach()')\n Cmd('au BufEnter *.scd lua require\"completion\".on_attach()')\nend\n\n-- ******************************Lsp Settings -------------------------------------------------\nfunction settings.lsp_settings()\n -- Autopairs, edited\n require('nvim-autopairs').setup()\n Lsp_status = require('lsp-status')\n Lsp_status.register_progress()\n Lsp = require 'lspconfig'\n local saga = require 'lspsaga'\n saga.init_lsp_saga()\n\n local highlight = {\n start = {\n {\"CursorHold\", \"\", [[lua vim.lsp.buf.document_highlight()]]},\n {\"CursorMoved\", \"\", [[lua vim.lsp.buf.clear_references()]]}\n }\n }\n\n -- -- Cmd(' augroup lsp_document_highlight')\n -- Cmd('autocmd! * ')\n -- Cmd('au CursorHold lua vim.lsp.buf.document_highlight()')\n -- Cmd('au CursorMoved lua vim.lsp.buf.clear_references()')\n -- Cmd('augroup END')\n\n All_attach = function(client, bufnr)\n require'completion'.on_attach(client)\n Lsp_status.on_attach(client)\n\n if client.resolved_capabilities.document_highlight then\n Cmd('hi LspReferenceRead cterm=bold ctermbg=red guibg=cyan')\n Cmd('hi LspReferenceText cterm=bold ctermbg=red guibg=grey')\n Cmd('hi LspReferenceWrite cterm=bold ctermbg=red guibg=pink')\n u.create_augroups(highlight)\n end\n end\n\n -- extending user-derfinined capabilities of LSP\n Capabilities = vim.lsp.protocol.make_client_capabilities()\n vim.tbl_extend('keep', Capabilities or {}, Lsp_status.capabilities)\n -- enable snippetSupport\n Capabilities.textDocument.completion.completionItem.snippetSupport = true;\n\n Cattach = function(client)\n local caps = client.resolved_capabilities\n caps.document_formatting = false\n caps.document_highlight = false\n caps.rename = false\n caps.hover = false\n caps.completion = false\n -- caps.publishDiagnostics = false\n end\n\n Lsp_status.config {\n -- sumneko_lua specific status\n select_symbol = function(cursor_pos, symbol)\n if symbol.valueRange then\n local value_range = {\n [\"start\"] = {character = 0, line = vim.fn.byte2line(symbol.valueRange[1])},\n [\"end\"] = {character = 0, line = vim.fn.byte2line(symbol.valueRange[2])}\n }\n return require(\"lsp-status.util\").in_range(cursor_pos, value_range)\n end\n end\n\n }\n\n require('lspkind').init()\nend\n\n-- ************** Language Servers-------------------------------------------------------\nfunction settings.langServers()\n local configs = {\n vimls = {on_attach = All_attach},\n bashls = {on_attach = All_attach},\n texlab = {on_attach = All_attach},\n efm = {\n init_options = {documentFormatting = true},\n filetypes = {\"lua\"},\n settings = {\n rootMarkers = {\".git/\"},\n languages = {\n lua = {\n {\n formatCommand = \"lua-format -i --keep-simple-function-one-line --break-after-operator --no-keep-simple-control-block-one-line --column-limit=100\",\n formatStdin = true\n }\n }\n }\n }\n },\n cssls = {on_attach = All_attach},\n yamlls = {on_attach = All_attach},\n jsonls = {on_attach = All_attach},\n pyls = {on_attach = All_attach},\n cmake = {on_attach = All_attach},\n clangd = {\n on_attach = All_attach,\n capabilities = Capabilities,\n cmd = {\n \"clangd\", \"--clang-tidy\", \"--background-index\", \"--suggest-missing-includes\",\n \"--all-scopes-completion\", \"--completion-style=detailed\"\n },\n commands = {CHover = {function() u.clang_hover() end}}\n },\n ccls = {\n on_attach = Cattach\n -- capabilities = Capabilities,\n -- init_options = {\n -- cache = {directory = \"/home/ranjith/.local/share/ccls\"},\n -- client = {snippetSupport = true}\n -- }\n },\n sumneko_lua = {\n on_attach = All_attach,\n cmd = {\n \"/usr/bin/lua-language-server\", \"-E\", \"/usr/bin/lua-language-server\" .. \"/main.lua\"\n },\n settings = {\n Lua = {\n runtime = {version = 'LuaJIT', path = vim.split(package.path, ';')},\n diagnostics = {globals = {'vim'}},\n workspace = {\n library = {\n [vim.fn.expand('$VIMRUNTIME/lua')] = true,\n [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true\n }\n }\n }\n }\n }\n }\n\n for ls, cfg in pairs(configs) do\n Lsp[ls].setup(cfg)\n end\nend\n\n-- ***********************LSP_Diagnostics---------------------------------------\n\nfunction settings.lsp_diagnostics()\n\n Lsp.diagnosticls.setup {\n cmd = {\"diagnostic-languageserver\", \"--stdio\"},\n filetypes = {\"sh\", \"markdown\", \"json\", \"yaml\", \"toml\"},\n init_options = {\n linters = {\n shellcheck = {\n command = \"shellcheck\",\n debounce = 100,\n args = {\"--format\", \"json\", \"-\"},\n sourceName = \"shellcheck\",\n parseJson = {\n line = \"line\",\n column = \"column\",\n endLine = \"endLine\",\n endColumn = \"endColumn\",\n message = \"${message} [${code}]\",\n security = \"level\"\n },\n securities = {\n error = \"error\",\n warning = \"warning\",\n info = \"info\",\n style = \"hint\"\n }\n },\n markdownlint = {\n command = \"markdownlint\",\n isStderr = true,\n debounce = 100,\n args = {\"--stdin\"},\n offsetLine = 0,\n offsetColumn = 0,\n sourceName = \"markdownlint\",\n formatLines = 1,\n formatPattern = {\n \"^.*?:\\\\s?(\\\\d+)(:(\\\\d+)?)?\\\\s(MD\\\\d{3}\\\\/[A-Za-z0-9-/]+)\\\\s(.*)$\",\n {line = 1, column = 3, message = {4}}\n }\n }\n },\n filetypes = {sh = \"shellcheck\", markdown = \"markdownlint\", vimwiki = \"markdownlint\"},\n formatters = {\n shfmt = {command = \"shfmt\", args = {\"-i\", \"2\", \"-bn\", \"-ci\", \"-sr\"}},\n prettier = {command = \"prettier\", args = {\"--stdin-filepath\", \"%filepath\"}}\n },\n formatFiletypes = {\n sh = \"shfmt\",\n json = \"prettier\",\n yaml = \"prettier\",\n toml = \"prettier\",\n markdown = \"prettier\"\n }\n }\n }\n -- Enable diagnostics\n vim.lsp.handlers[\"textDocument/publishDiagnostics\"] =\n vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {\n underline = true,\n virtual_text = true,\n signs = true,\n update_in_insert = false\n })\n\nend\n\n-- ************** Telescope ---------------------------------------------------------\nfunction settings.telescope()\n require('telescope').setup {}\n require'telescope'.load_extension('project')\n require('telescope').load_extension('snippets')\n\n local borders = {\n {'─', '│', '─', '│', '┌', '┐', '┘', '└'},\n prompt = {\"─\", \"│\", \" \", \"│\", '┌', '┐', \"│\", \"│\"},\n results = {\"─\", \"│\", \"─\", \"│\", \"├\", \"┤\", \"┘\", \"└\"},\n preview = {'─', '│', '─', '│', '┌', '┐', '┘', '└'}\n }\n No_preview = function()\n return require('telescope.themes').get_dropdown(\n {borderchars = borders, width = 0.5, previewer = false, prompt_title = false})\n end\n\n G.indent_blankline_buftype_exclude = {'terminal'}\n G.indent_blankline_filetype_exclude = {'packer', 'netrw'}\n -- G.indent_blankline_char = '▏'\n G.indent_blankline_use_treesitter = true\n G.indent_blankline_show_trailing_blankline_indent = false\n G.indent_blankline_show_current_context = true\n G.indent_blankline_context_patterns = {\n 'class', 'return', 'function', 'method', '^if', '^while', 'jsx_element', '^for', '^object',\n '^table', 'block', 'arguments', 'if_statement', 'else_clause', 'jsx_element',\n 'jsx_self_closing_element', 'try_statement', 'catch_clause', 'import_statement',\n 'operation_type'\n }\n\nend\n\nreturn settings\n", uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/settings/init.lua", version = 0 } }} [ ERROR ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:458 ] "rpc" "efm-langserver" "stderr" "2021/03/30 09:45:06 lint for LanguageID not supported: lua\n" [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/settings/init.lua", version = 0 }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 1, jsonrpc = "2.0", method = "workspace/configuration", params = { items = { { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "Lua" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.associations" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.exclude" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "editor.semanticHighlighting.enabled" } } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 2, jsonrpc = "2.0", method = "workspace/configuration", params = { items = { { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "Lua" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.associations" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.exclude" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "editor.semanticHighlighting.enabled" } } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "textDocument/publishDiagnostics" { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/settings/init.lua", version = 0} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:527 ] "server_request" "workspace/configuration" { items = { { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "Lua" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.associations" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.exclude" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "editor.semanticHighlighting.enabled" } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:530 ] "server_request: found handler for" "workspace/configuration" [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:409 ] "default_handler" "workspace/configuration" { client_id = 2, params = { items = { { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "Lua" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.associations" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.exclude" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "editor.semanticHighlighting.enabled" } } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:503 ] "server_request: callback result" { result = { { diagnostics = { globals = { "vim" }, = <1>{ __tostring = } }, runtime = { path = { "./?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/?.lua", "/usr/local/share/lua/5.1/?.lua", "/usr/local/share/lua/5.1/?/init.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?/init.lua" }, version = "LuaJIT", =
}, telemetry = { enable = false, =
}, workspace = { library = { ["/usr/share/nvim/runtime/lua"] = true, ["/usr/share/nvim/runtime/lua/vim/lsp"] = true, =
}, =
}, =
}, vim.NIL, vim.NIL, vim.NIL }, status = true} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 1, jsonrpc = "2.0", result = { { diagnostics = { globals = { "vim" }, = <1>{ __tostring = } }, runtime = { path = { "./?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/?.lua", "/usr/local/share/lua/5.1/?.lua", "/usr/local/share/lua/5.1/?/init.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?/init.lua" }, version = "LuaJIT", =
}, telemetry = { enable = false, =
}, workspace = { library = { ["/usr/share/nvim/runtime/lua"] = true, ["/usr/share/nvim/runtime/lua/vim/lsp"] = true, =
}, =
}, =
}, vim.NIL, vim.NIL, vim.NIL }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:527 ] "server_request" "workspace/configuration" { items = { { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "Lua" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.associations" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.exclude" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "editor.semanticHighlighting.enabled" } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:530 ] "server_request: found handler for" "workspace/configuration" [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:409 ] "default_handler" "workspace/configuration" { client_id = 2, params = { items = { { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "Lua" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.associations" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "files.exclude" }, { scopeUri = "file:///home/ranjith/Nextcloud/Backup", section = "editor.semanticHighlighting.enabled" } } }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:503 ] "server_request: callback result" { result = { { diagnostics = { globals = { "vim" }, = <1>{ __tostring = } }, runtime = { path = { "./?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/?.lua", "/usr/local/share/lua/5.1/?.lua", "/usr/local/share/lua/5.1/?/init.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?/init.lua" }, version = "LuaJIT", =
}, telemetry = { enable = false, =
}, workspace = { library = { ["/usr/share/nvim/runtime/lua"] = true, ["/usr/share/nvim/runtime/lua/vim/lsp"] = true, =
}, =
}, =
}, vim.NIL, vim.NIL, vim.NIL }, status = true} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 2, jsonrpc = "2.0", result = { { diagnostics = { globals = { "vim" }, = <1>{ __tostring = } }, runtime = { path = { "./?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/?.lua", "/usr/local/share/lua/5.1/?.lua", "/usr/local/share/lua/5.1/?/init.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?/init.lua" }, version = "LuaJIT", =
}, telemetry = { enable = false, =
}, workspace = { library = { ["/usr/share/nvim/runtime/lua"] = true, ["/usr/share/nvim/runtime/lua/vim/lsp"] = true, =
}, =
}, =
}, vim.NIL, vim.NIL, vim.NIL }} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "workspace/semanticTokens/refresh", params = vim.NIL} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "workspace/semanticTokens/refresh" nil [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "workspace/semanticTokens/refresh", params = vim.NIL} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 3, jsonrpc = "2.0", method = "client/registerCapability", params = { registrations = { { id = "completion", method = "textDocument/completion", registerOptions = { resolveProvider = true, triggerCharacters = { "\t", "\n", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " " } } } } }} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "workspace/semanticTokens/refresh" nil [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:527 ] "server_request" "client/registerCapability" { registrations = { { id = "completion", method = "textDocument/completion", registerOptions = { resolveProvider = true, triggerCharacters = { "\t", "\n", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " " } } } }} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:530 ] "server_request: found handler for" "client/registerCapability" [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:409 ] "default_handler" "client/registerCapability" { client_id = 2, params = { registrations = { { id = "completion", method = "textDocument/completion", registerOptions = { resolveProvider = true, triggerCharacters = { "\t", "\n", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " " } } } } }} [ WARN ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:108 ] "The language server sumneko_lua triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless" [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:503 ] "server_request: callback result" { result = vim.NIL, status = true} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 3, jsonrpc = "2.0", result = vim.NIL} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/show"} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 1/1\nMemory usage: 2M\n" }} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/show" nil [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/report" { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 1/1\nMemory usage: 2M\n"} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/show"} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 4, jsonrpc = "2.0", method = "client/registerCapability", params = { registrations = { { id = "workspace/didChangeWatchedFiles", method = "workspace/didChangeWatchedFiles", registerOptions = { watchers = { { globPattern = "**/", kind = 7 } } } }, { id = "workspace/didChangeConfiguration", method = "workspace/didChangeConfiguration" } } }} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/show" nil [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:527 ] "server_request" "client/registerCapability" { registrations = { { id = "workspace/didChangeWatchedFiles", method = "workspace/didChangeWatchedFiles", registerOptions = { watchers = { { globPattern = "**/", kind = 7 } } } }, { id = "workspace/didChangeConfiguration", method = "workspace/didChangeConfiguration" } }} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:530 ] "server_request: found handler for" "client/registerCapability" [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:409 ] "default_handler" "client/registerCapability" { client_id = 2, params = { registrations = { { id = "workspace/didChangeWatchedFiles", method = "workspace/didChangeWatchedFiles", registerOptions = { watchers = { { globPattern = "**/", kind = 7 } } } }, { id = "workspace/didChangeConfiguration", method = "workspace/didChangeConfiguration" } } }} [ WARN ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:108 ] "The language server sumneko_lua triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless" [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:503 ] "server_request: callback result" { result = vim.NIL, status = true} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 4, jsonrpc = "2.0", result = vim.NIL} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 5, jsonrpc = "2.0", method = "window/workDoneProgress/create", params = { token = 3 }} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:527 ] "server_request" "window/workDoneProgress/create" { token = 3} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:530 ] "server_request: found handler for" "window/workDoneProgress/create" [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:409 ] "default_handler" "window/workDoneProgress/create" { client_id = 2, params = { token = 3 }} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:503 ] "server_request: callback result" { result = vim.NIL, status = true} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 5, jsonrpc = "2.0", result = vim.NIL} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { cancellable = false, kind = "begin", percentage = 0, title = "Loading workspace" } }} [ DEBUG ] 2021-03-30T09:45:07+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/progress" { token = 3, value = { cancellable = false, kind = "begin", percentage = 0, title = "Loading workspace" }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "0/1", percentage = 0 } }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/progress" { token = 3, value = { kind = "report", message = "0/1", percentage = 0 }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/report", params = { text = "$(loading~spin)Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 17/20\nMemory usage: 7M\n" }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/report" { text = "$(loading~spin)Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 17/20\nMemory usage: 7M\n"} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "24/29", percentage = 79 } }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/progress" { token = 3, value = { kind = "report", message = "24/29", percentage = 79 }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "report", message = "29/30", percentage = 100 } }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/progress" { token = 3, value = { kind = "report", message = "29/30", percentage = 100 }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/report", params = { text = "$(loading~spin)Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 32/35\nMemory usage: 16M\n" }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/report" { text = "$(loading~spin)Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 32/35\nMemory usage: 16M\n"} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 36/39\nMemory usage: 18M\n" }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/report" { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 36/39\nMemory usage: 18M\n"} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 36/39\nMemory usage: 19M\n" }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/report" { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 36/39\nMemory usage: 19M\n"} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/progress", params = { token = 3, value = { kind = "end" } }} [ DEBUG ] 2021-03-30T09:45:08+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/progress" { token = 3, value = { kind = "end" }} [ DEBUG ] 2021-03-30T09:45:09+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/utils/init.lua" }} [ DEBUG ] 2021-03-30T09:45:09+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "textDocument/publishDiagnostics" { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/utils/init.lua"} [ DEBUG ] 2021-03-30T09:45:09+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/plugins.lua" }} [ DEBUG ] 2021-03-30T09:45:09+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "textDocument/publishDiagnostics" { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/plugins.lua"} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 39/39\nMemory usage: 23M\n" }} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/report" { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 39/39\nMemory usage: 23M\n"} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "unused-local", message = "Unused local `bufnr`.", range = { end = { character = 39, line = 201 }, start = { character = 34, line = 201 } }, severity = 4, source = "Lua Diagnostics.", tags = { 1 } } }, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/settings/init.lua" }} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "textDocument/publishDiagnostics" { diagnostics = { { code = "unused-local", message = "Unused local `bufnr`.", range = { end = { character = 39, line = 201 }, start = { character = 34, line = 201 } }, severity = 4, source = "Lua Diagnostics.", tags = { 1 } } }, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/settings/init.lua"} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/debug.lua" }} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/mappings.lua" }} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "textDocument/publishDiagnostics" { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/debug.lua"} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "textDocument/publishDiagnostics" { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/mappings.lua"} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/galaxylineconf.lua" }} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "$/status/report", params = { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 39/39\nMemory usage: 25M\n" }} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "textDocument/publishDiagnostics" { diagnostics = {}, uri = "file:///home/ranjith/Nextcloud/Backup/neovim/lua/galaxylineconf.lua"} [ DEBUG ] 2021-03-30T09:45:10+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "$/status/report" { text = "😺Lua", tooltip = "Workspace : /home/ranjith/Nextcloud/Backup\nCached files: 39/39\nMemory usage: 25M\n"} [ INFO ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:311 ] "Starting RPC client" { args = { "--stdio" }, cmd = "diagnostic-languageserver", extra = {}} [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:659 ] "LSP[diagnosticls]" "initialize_params" { capabilities = { callHierarchy = { dynamicRegistration = false, = <1>{ __tostring = } }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, =
}, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, clientInfo = { name = "Neovim", version = "0.5.0" }, initializationOptions = { filetypes = { markdown = "markdownlint", sh = "shellcheck", vimwiki = "markdownlint", =
}, formatFiletypes = { json = "prettier", markdown = "prettier", sh = "shfmt", toml = "prettier", yaml = "prettier", =
}, formatters = { prettier = { args = { "--stdin-filepath", "%filepath" }, command = "prettier", =
}, shfmt = { args = { "-i", "2", "-bn", "-ci", "-sr" }, command = "shfmt", =
}, =
}, linters = { markdownlint = { args = { "--stdin" }, command = "markdownlint", debounce = 100, formatLines = 1, formatPattern = { "^.*?:\\s?(\\d+)(:(\\d+)?)?\\s(MD\\d{3}\\/[A-Za-z0-9-/]+)\\s(.*)$", { column = 3, line = 1, message = { 4 } } }, isStderr = true, offsetColumn = 0, offsetLine = 0, sourceName = "markdownlint", =
}, shellcheck = { args = { "--format", "json", "-" }, command = "shellcheck", debounce = 100, parseJson = { column = "column", endColumn = "endColumn", endLine = "endLine", line = "line", message = "${message} [${code}]", security = "level", =
}, securities = { error = "error", info = "info", style = "hint", warning = "warning", =
}, sourceName = "shellcheck", =
}, =
}, =
}, processId = 14382, rootPath = "/", rootUri = "file:///", trace = "off", workspaceFolders = { { name = "/", uri = "file:///" } }} [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { callHierarchy = { dynamicRegistration = false, = <1>{ __tostring = } }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, =
}, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, clientInfo = { name = "Neovim", version = "0.5.0" }, initializationOptions = { filetypes = { markdown = "markdownlint", sh = "shellcheck", vimwiki = "markdownlint", =
}, formatFiletypes = { json = "prettier", markdown = "prettier", sh = "shfmt", toml = "prettier", yaml = "prettier", =
}, formatters = { prettier = { args = { "--stdin-filepath", "%filepath" }, command = "prettier", =
}, shfmt = { args = { "-i", "2", "-bn", "-ci", "-sr" }, command = "shfmt", =
}, =
}, linters = { markdownlint = { args = { "--stdin" }, command = "markdownlint", debounce = 100, formatLines = 1, formatPattern = { "^.*?:\\s?(\\d+)(:(\\d+)?)?\\s(MD\\d{3}\\/[A-Za-z0-9-/]+)\\s(.*)$", { column = 3, line = 1, message = { 4 } } }, isStderr = true, offsetColumn = 0, offsetLine = 0, sourceName = "markdownlint", =
}, shellcheck = { args = { "--format", "json", "-" }, command = "shellcheck", debounce = 100, parseJson = { column = "column", endColumn = "endColumn", endLine = "endLine", line = "line", message = "${message} [${code}]", security = "level", =
}, securities = { error = "error", info = "info", style = "hint", warning = "warning", =
}, sourceName = "shellcheck", =
}, =
}, =
}, processId = 14382, rootPath = "/", rootUri = "file:///", trace = "off", workspaceFolders = { { name = "/", uri = "file:///" } } }} [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 3, firstline: 1, lastline: 1, new_lastline: 3, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "health#scnvim#check", "========================================================================" } [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 4, firstline: 3, lastline: 3, new_lastline: 10, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "## scnvim", " - OK: SCNvim classes installed: /home/ranjith/.local/share/SuperCollider/Extensions/scide_scnvim", ' - OK: has("timers") - success', " - INFO: sclang executable: /usr/bin/sclang", " - INFO: Could not find scdoc render program. See :help |scnvim-help-system| for more information.", " This is an optional dependency and only needed for SCDoc integration.", "" } [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 5, firstline: 10, lastline: 10, new_lastline: 12, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "health#floaterm#check", "========================================================================" } [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 6, firstline: 12, lastline: 12, new_lastline: 24, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "## common", " - INFO: Platform: linux", " - INFO: Nvim: NVIM v0.5.0-dev+1191-gf89bfa686", " - INFO: Plugin: ae7eea5", "", "", "## terminal", " - OK: Terminal emulator is available", "", "## floating", " - OK: Floating window is available", "" } [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 7, firstline: 24, lastline: 24, new_lastline: 26, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "health#vimtex#check", "========================================================================" } [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 8, firstline: 26, lastline: 26, new_lastline: 31, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "## VimTeX", " - OK: Vim version should have full support!", " - OK: General viewer should work properly!", " - OK: Compiler should work!", "" } [ DEBUG ] 2021-03-30T09:45:16+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 9, firstline: 31, lastline: 31, new_lastline: 33, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "health#nvim_treesitter#check", "========================================================================" } [ DEBUG ] 2021-03-30T09:45:17+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 10, firstline: 33, lastline: 33, new_lastline: 55, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "## Installation", " - OK: `tree-sitter` found 0.19.4 (6dd41e2e45f8b4a00fda21f28bc0ebc6b172ffed) (parser generator, only needed for :TSInstallFromGrammar)", " - OK: `git` executable found.", " - OK: `cc` executable found.", "", "## Parser/Features H L F I", " - query ✓ ✓ ✓ ✓ ", " - c ✓ ✓ ✓ ✓ ", " - cpp ✓ ✓ ✓ ✓ ", " - json ✓ ✓ ✓ ✓ ", " - yaml ✓ ✓ ✓ ✓ ", " - toml ✓ ✓ ✓ ✓ ", " - bash ✓ ✓ ✓ . ", " - supercollider ✓ ✓ ✓ ✓ ", " - lua ✓ ✓ ✓ ✓ ", " - html ✓ ✓ ✓ ✓ ", " - css ✓ . ✓ ✓ ", "", " Legend: H[ighlight], L[ocals], F[olds], I[ndents]", " +) multiple parsers found, only one will be used", " x) errors found in the query, try to run :TSUpdate {lang}", "" } [ DEBUG ] 2021-03-30T09:45:17+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 11, firstline: 55, lastline: 55, new_lastline: 57, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "health#lspconfig#check", "========================================================================" } [ DEBUG ] 2021-03-30T09:45:17+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 12, firstline: 57, lastline: 57, new_lastline: 72, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "## Checking language server protocol configuration", " - INFO: efm: configuration checked.", " - INFO: clangd: configuration checked.", " - INFO: diagnosticls: configuration checked.", " - INFO: ccls: configuration checked.", " - INFO: sumneko_lua: configuration checked.", " - INFO: pyls: configuration checked.", " - INFO: bashls: configuration checked.", " - INFO: cssls: configuration checked.", " - INFO: yamlls: configuration checked.", " - INFO: jsonls: configuration checked.", " - INFO: vimls: configuration checked.", " - INFO: cmake: configuration checked.", " - INFO: texlab: configuration checked.", "" } [ DEBUG ] 2021-03-30T09:45:17+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 13, firstline: 72, lastline: 72, new_lastline: 74, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "health#completion_nvim#check", "========================================================================" } [ DEBUG ] 2021-03-30T09:45:17+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 14, firstline: 74, lastline: 74, new_lastline: 83, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "## general", " - OK: neovim version is supported", "", "## completion source", " - OK: all completion sources are valid", "", "## snippet source", " - OK: You are using vim-vsnip as your snippet source", "" } [ DEBUG ] 2021-03-30T09:45:17+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 15, firstline: 83, lastline: 83, new_lastline: 85, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "health#nvim#check", "========================================================================" } [ DEBUG ] 2021-03-30T09:45:17+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 16, firstline: 85, lastline: 85, new_lastline: 98, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "## Configuration", " - OK: no issues found", "", "## Performance", " - OK: Build type: RelWithDebInfo", "", "## Remote Plugins", " - OK: Up to date", "", "## terminal", " - INFO: key_backspace (kbs) terminfo entry: key_backspace=\\177", " - INFO: key_dc (kdch1) terminfo entry: key_dc=\\E[3~", "" } [ DEBUG ] 2021-03-30T09:45:17+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 17, firstline: 98, lastline: 98, new_lastline: 100, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "health#provider#check", "========================================================================" } [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:841 ] "on_lines bufnr: 8, changedtick: 18, firstline: 100, lastline: 100, new_lastline: 139, old_byte_size: 0, old_utf32_size: 0, old_utf16_size: 0" { "## Clipboard (optional)", " - OK: Clipboard tool found: xclip", "", "## Python 2 provider (optional)", " - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.", " - ERROR: Python provider error:", " - ADVICE:", " - provider/pythonx: Could not load Python 2:", " python2 not found in search path or not executable.", " python2.7 not found in search path or not executable.", " python2.6 not found in search path or not executable.", " /usr/bin/python is Python 3.9 and cannot provide Python 2.", " - INFO: Executable: Not found", "", "## Python 3 provider (optional)", " - INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment.", " - INFO: Executable: /usr/bin/python3", " - INFO: Python version: 3.9.2", " - INFO: pynvim version: 0.4.3", " - OK: Latest pynvim is installed.", "", "## Python virtualenv", " - OK: no $VIRTUAL_ENV", "", "## Ruby provider (optional)", " - WARNING: `ruby` and `gem` must be in $PATH.", " - ADVICE:", " - Install Ruby and verify that `ruby` and `gem` commands work.", "", "## Node.js provider (optional)", " - INFO: Node.js: v15.12.0", " - INFO: Nvim node.js host: /home/ranjith/.local/share/npm/lib/node_modules/neovim/bin/cli.js", ' - OK: Latest "neovim" npm/yarn package is installed: 4.9.0', "", "## Perl provider (optional)", " - ERROR: perl provider error:", " - ADVICE:", ' - "Neovim::Ext" cpan module is not installed', "" } [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 1, jsonrpc = "2.0", result = { capabilities = { documentFormattingProvider = true, textDocumentSync = 2 } }} [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "initialized", params = { [true] = 6 }} [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:686 ] "LSP[diagnosticls]" "server_capabilities" { documentFormattingProvider = true, textDocumentSync = 2} [ INFO ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:687 ] "LSP[diagnosticls]" "initialized" { resolved_capabilities = { call_hierarchy = false, code_action = false, code_lens = false, code_lens_resolve = false, completion = false, declaration = false, document_formatting = true, document_highlight = false, document_range_formatting = false, document_symbol = false, execute_command = false, find_references = false, goto_definition = false, hover = false, implementation = false, rename = false, signature_help = false, signature_help_trigger_characters = {}, text_document_did_change = 2, text_document_open_close = true, text_document_save = true, text_document_save_include_text = false, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = false, workspace_folder_properties = { changeNotifications = false, supported = false }, workspace_symbol = false }} [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "markdown", text = '\nhealth#scnvim#check\n========================================================================\n## scnvim\n - OK: SCNvim classes installed: /home/ranjith/.local/share/SuperCollider/Extensions/scide_scnvim\n - OK: has("timers") - success\n - INFO: sclang executable: /usr/bin/sclang\n - INFO: Could not find scdoc render program. See :help |scnvim-help-system| for more information.\n This is an optional dependency and only needed for SCDoc integration.\n\nhealth#floaterm#check\n========================================================================\n## common\n - INFO: Platform: linux\n - INFO: Nvim: NVIM v0.5.0-dev+1191-gf89bfa686\n - INFO: Plugin: ae7eea5\n\n\n## terminal\n - OK: Terminal emulator is available\n\n## floating\n - OK: Floating window is available\n\nhealth#vimtex#check\n========================================================================\n## VimTeX\n - OK: Vim version should have full support!\n - OK: General viewer should work properly!\n - OK: Compiler should work!\n\nhealth#nvim_treesitter#check\n========================================================================\n## Installation\n - OK: `tree-sitter` found 0.19.4 (6dd41e2e45f8b4a00fda21f28bc0ebc6b172ffed) (parser generator, only needed for :TSInstallFromGrammar)\n - OK: `git` executable found.\n - OK: `cc` executable found.\n\n## Parser/Features H L F I\n - query ✓ ✓ ✓ ✓ \n - c ✓ ✓ ✓ ✓ \n - cpp ✓ ✓ ✓ ✓ \n - json ✓ ✓ ✓ ✓ \n - yaml ✓ ✓ ✓ ✓ \n - toml ✓ ✓ ✓ ✓ \n - bash ✓ ✓ ✓ . \n - supercollider ✓ ✓ ✓ ✓ \n - lua ✓ ✓ ✓ ✓ \n - html ✓ ✓ ✓ ✓ \n - css ✓ . ✓ ✓ \n\n Legend: H[ighlight], L[ocals], F[olds], I[ndents]\n +) multiple parsers found, only one will be used\n x) errors found in the query, try to run :TSUpdate {lang}\n\nhealth#lspconfig#check\n========================================================================\n## Checking language server protocol configuration\n - INFO: efm: configuration checked.\n - INFO: clangd: configuration checked.\n - INFO: diagnosticls: configuration checked.\n - INFO: ccls: configuration checked.\n - INFO: sumneko_lua: configuration checked.\n - INFO: pyls: configuration checked.\n - INFO: bashls: configuration checked.\n - INFO: cssls: configuration checked.\n - INFO: yamlls: configuration checked.\n - INFO: jsonls: configuration checked.\n - INFO: vimls: configuration checked.\n - INFO: cmake: configuration checked.\n - INFO: texlab: configuration checked.\n\nhealth#completion_nvim#check\n========================================================================\n## general\n - OK: neovim version is supported\n\n## completion source\n - OK: all completion sources are valid\n\n## snippet source\n - OK: You are using vim-vsnip as your snippet source\n\nhealth#nvim#check\n========================================================================\n## Configuration\n - OK: no issues found\n\n## Performance\n - OK: Build type: RelWithDebInfo\n\n## Remote Plugins\n - OK: Up to date\n\n## terminal\n - INFO: key_backspace (kbs) terminfo entry: key_backspace=\\177\n - INFO: key_dc (kdch1) terminfo entry: key_dc=\\E[3~\n\nhealth#provider#check\n========================================================================\n## Clipboard (optional)\n - OK: Clipboard tool found: xclip\n\n## Python 2 provider (optional)\n - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.\n - ERROR: Python provider error:\n - ADVICE:\n - provider/pythonx: Could not load Python 2:\n python2 not found in search path or not executable.\n python2.7 not found in search path or not executable.\n python2.6 not found in search path or not executable.\n /usr/bin/python is Python 3.9 and cannot provide Python 2.\n - INFO: Executable: Not found\n\n## Python 3 provider (optional)\n - INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment.\n - INFO: Executable: /usr/bin/python3\n - INFO: Python version: 3.9.2\n - INFO: pynvim version: 0.4.3\n - OK: Latest pynvim is installed.\n\n## Python virtualenv\n - OK: no $VIRTUAL_ENV\n\n## Ruby provider (optional)\n - WARNING: `ruby` and `gem` must be in $PATH.\n - ADVICE:\n - Install Ruby and verify that `ruby` and `gem` commands work.\n\n## Node.js provider (optional)\n - INFO: Node.js: v15.12.0\n - INFO: Nvim node.js host: /home/ranjith/.local/share/npm/lib/node_modules/neovim/bin/cli.js\n - OK: Latest "neovim" npm/yarn package is installed: 4.9.0\n\n## Perl provider (optional)\n - ERROR: perl provider error:\n - ADVICE:\n - "Neovim::Ext" cpan module is not installed\n\n', uri = "file://", version = 0 } }} [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "window/logMessage", params = { message = "[markdown] diagnostic handle fail: [markdownlint] spawn markdownlint ENOENT", type = 1 }} [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "window/logMessage" { message = "[markdown] diagnostic handle fail: [markdownlint] spawn markdownlint ENOENT", type = 1} [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:409 ] "default_handler" "window/logMessage" { client_id = 3, params = { message = "[markdown] diagnostic handle fail: [markdownlint] spawn markdownlint ENOENT", type = 1 }} [ ERROR ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:377 ] "[markdown] diagnostic handle fail: [markdownlint] spawn markdownlint ENOENT" [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file://" }} [ DEBUG ] 2021-03-30T09:45:18+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:513 ] "notification" "textDocument/publishDiagnostics" { diagnostics = {}, uri = "file://"} [ INFO ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:1040 ] "exit_handler" { { _on_attach = , cancel_request = , config = { capabilities = { callHierarchy = { dynamicRegistration = false, = <1>{ __tostring = } }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, =
}, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, cmd = { "efm-langserver" }, filetypes = { "lua" }, flags = {}, get_language_id = , handlers = <2>{}, init_options = { documentFormatting = true, =
}, log_level = 2, message_level = 2, name = "efm", on_attach = , on_exit = , on_init = , root_dir = "/home/ranjith/Nextcloud/Backup", settings = { languages = { lua = { { formatCommand = "lua-format -i --keep-simple-function-one-line --break-after-operator --no-keep-simple-control-block-one-line --column-limit=100", formatStdin = true } }, =
}, rootMarkers = { ".git/" }, =
}, =
}, handlers =
, id = 1, initialized = true, is_stopped = , messages = { messages = {}, name = "efm", progress = {}, status = {} }, name = "efm", notify = , offset_encoding = "utf-16", request = , resolved_capabilities = { call_hierarchy = false, code_action = false, code_lens = false, code_lens_resolve = false, completion = false, declaration = false, document_formatting = true, document_highlight = false, document_range_formatting = false, document_symbol = false, execute_command = false, find_references = false, goto_definition = true, hover = false, implementation = false, rename = false, signature_help = false, signature_help_trigger_characters = {}, text_document_did_change = 1, text_document_open_close = true, text_document_save = true, text_document_save_include_text = false, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = false, workspace_folder_properties = { changeNotifications = true, supported = true }, workspace_symbol = false }, rpc = { handle = , notify = , pid = 14385, request = }, server_capabilities = { definitionProvider = true, documentFormattingProvider = true, textDocumentSync = 1, workspace = { workspaceFolders = { changeNotifications = true, supported = true } } }, stop = , supports_method = , workspaceFolders = { { name = "/home/ranjith/Nextcloud/Backup", uri = "file:///home/ranjith/Nextcloud/Backup" } }, workspace_did_change_configuration = }, { _cached_buffers = { [2] = { "local settings = {}", "local u = require('utils')", "local o = vim.o", "", "function settings.settings()", " settings.options()", " settings.vimwiki()", " settings.treesitter()", " -- settings.ultisnips()", " settings.lsp_settings()", " settings.langServers()", " settings.lsp_diagnostics()", " settings.telescope()", " settings.completion()", " settings.snippets()", "end", "", "-- **************Neovim basics ---------------------------------------------------------", "", "function settings.options()", " Cmd 'colo nvcode'", " Cmd 'set nohlsearch'", " -- Cmd 'highlight Normal guibg=none'", " Cmd 'hi LineNr ctermbg=none guibg=none'", "", " u.opt('w', 'number', true)", " u.opt('w', 'relativenumber', true)", " u.opt('w', 'cursorline', true)", " u.opt('o', 'hidden', true)", " u.opt('o', 'splitright', true)", " u.opt('o', 'splitbelow', true)", " u.opt('b', 'smartindent', true)", " u.opt('o', 'shiftround', true)", " u.opt('o', 'termguicolors', true)", " u.opt('o', 'signcolumn', 'true')", " u.opt('o', 'updatetime', 300)", " u.opt('o', 'scrolloff', 10)", " u.opt('b', 'shiftwidth', 2)", " u.opt('o', 'clipboard', [[unnamed,unnamedplus]])", " u.opt('o', 'completeopt', [[menuone,noinsert,noselect]])", " u.opt('o', 'fillchars', \"stlnc:»,vert:║,fold:·\")", " -- u.opt('o', 'guicursor', \"n:blinkwait60-blinkon175-blinkoff175,i-ci-ve:ver25\")", ' o.shortmess = o.shortmess .. "c"', " G.termdebug_wide = 1", "end", "", "-- ******************************vimWiki Settings -------------------------------------------------", "function settings.vimwiki()", " local l = {}", " -- l.path = '$HOME/Documents/vimWiki'", " l.path = '$HOME/Nextcloud/Documents/vimWiki'", " l.syntax = 'markdown'", " l.ext = '.md'", " l.auto_tags = 1", " l.auto_diary_index = 1", " l.auto_generate_tags = 1", " l.autowriteall = 1", " Cmd(\"let g:vimwiki_ext2syntax = {'.md':'markdown', '.markdown':'markdown','.mdown':'markdown'}\")", " G.vimwiki_filetypes = {'markdown'}", " G.vimwiki_list = {l}", " G.vimwiki_markdown_link_ext = 1", "end", "-- ******************************Sinppets -------------------------------------------------", "", "-- function settings.ultisnips()", '-- local snippet_directories = {"UltiSnips", "scnvim-data"}', "-- Var('UltiSnipsExpandTrigger', \"\")", "-- Var('UltiSnipsJumpForwardTrigger', \"\")", "-- Var('UltiSnipsJumpBackwardTrigger', \"\")", "-- Var('UltiSnipsSnippetDirectories', snippet_directories)", "-- end", "", "function settings.snippets()", " package.path = package.path ..", ' ";/home/ranjith/.config/nvim/plugged/scnvim/scnvim-data/scnvim_snippets.lua"', " require'snippets'.snippets = {supercollider = require 'scnvim_snippets'}", "end", "", "-- ************** TreeSitter ---------------------------------------------------------", "function settings.treesitter()", " -- require('indent_guides')", " require'nvim-treesitter.configs'.setup {", " highlight = {enable = true, use_languagetree = true},", " indent = {enable = true},", " incremental_selection = {", " enable = true,", " keymaps = {", ' init_selection = "gnn",', ' node_incremental = "grn",', ' scope_incremental = "grc",', ' node_decremental = "grm"', " }", " },", " textobjects = {", " select = {", " enable = true,", " keymaps = {", ' ["af"] = "@function.outer",', ' ["if"] = "@function.inner",', ' ["ac"] = "@class.outer",', ' ["ic"] = "@class.inner",', " ['aC'] = '@conditional.outer',", " ['iC'] = '@conditional.inner',", " ['ae'] = '@block.outer',", " ['ie'] = '@block.inner',", " ['al'] = '@loop.outer',", " ['il'] = '@loop.inner',", " ['is'] = '@statement.inner',", " ['as'] = '@statement.outer',", " ['ad'] = '@comment.outer',", " ['am'] = '@call.outer',", " ['im'] = '@call.inner',", ' ["iF"] = {', ' supercollider = "(function_definition) @function",', ' cpp = "(function_definition) @function",', ' c = "(function_definition) @function"', " }", " }", " },", " move = {", " enable = true,", ' goto_next_start = {["]n"] = "@function.outer", ["]}"] = "@class.outer"},', ' goto_next_end = {["]N"] = "@function.outer", ["]{"] = "@class.outer"},', ' goto_previous_start = {["[n"] = "@function.outer", ["[{"] = "@class.outer"},', ' goto_previous_end = {["[N"] = "@function.outer", ["[}"] = "@class.outer"}', " },", " swap = {", " enable = true,", ' -- disable = {"cpp"},', ' swap_next = {["sn"] = "@parameter.inner"},', ' swap_previous = {["sp"] = "@parameter.inner"}', " }", " },", "", " playground = {enable = true, disable = {}, updatetime = 25, persist_queries = false},", " rainbow = {enable = true},", " refactor = {", " highlight_definitions = {enable = true},", " -- highlight_current_scope = {enable = true},", " navigation = {", " enable = true,", " keymaps = {", ' goto_definition = "gnd",', ' list_definitions = "gnD",', ' list_definitions_toc = "gO",', ' goto_next_usage = "gn*",', ' goto_previous_usage = "gn#"', " }", " }", "", " }", " }", "end", "", "-- ************** Completion ---------------------------------------------------------", "function settings.completion()", "", " -- require'completion-treesitter'.init()", " G.completion_chain_complete_list = {", " default = {", " {complete_items = {'UltiSnips', 'lsp', 'snippet', 'snippets.nvim'}}, {mode = ''},", " {mode = ''}", " }", " }", "", ' if Op("filetype") == "supercollider" then', " -- Var('completion_enable_snippet', \"UltiSnips\")", " -- G.completion_enable_snippet = 'UltiSnips'", " G.completion_enable_snippet = 'snippets.nvim'", " else", " G.completion_enable_snippet = 'vim-vsnip'", " end", "", " Cmd('au BufEnter *.txt lua require\"completion\".on_attach()')", " Cmd('au BufEnter *.md lua require\"completion\".on_attach()')", " Cmd('au BufEnter *.scd lua require\"completion\".on_attach()')", "end", "", "-- ******************************Lsp Settings -------------------------------------------------", "function settings.lsp_settings()", " -- Autopairs, edited", " require('nvim-autopairs').setup()", " Lsp_status = require('lsp-status')", " Lsp_status.register_progress()", " Lsp = require 'lspconfig'", " local saga = require 'lspsaga'", " saga.init_lsp_saga()", "", " local highlight = {", " start = {", ' {"CursorHold", "", [[lua vim.lsp.buf.document_highlight()]]},', ' {"CursorMoved", "", [[lua vim.lsp.buf.clear_references()]]}', " }", " }", "", " -- -- Cmd(' augroup lsp_document_highlight')", " -- Cmd('autocmd! * ')", " -- Cmd('au CursorHold lua vim.lsp.buf.document_highlight()')", " -- Cmd('au CursorMoved lua vim.lsp.buf.clear_references()')", " -- Cmd('augroup END')", "", " All_attach = function(client, bufnr)", " require'completion'.on_attach(client)", " Lsp_status.on_attach(client)", "", " if client.resolved_capabilities.document_highlight then", " Cmd('hi LspReferenceRead cterm=bold ctermbg=red guibg=cyan')", " Cmd('hi LspReferenceText cterm=bold ctermbg=red guibg=grey')", " Cmd('hi LspReferenceWrite cterm=bold ctermbg=red guibg=pink')", " u.create_augroups(highlight)", " end", " end", "", " -- extending user-derfinined capabilities of LSP", " Capabilities = vim.lsp.protocol.make_client_capabilities()", " vim.tbl_extend('keep', Capabilities or {}, Lsp_status.capabilities)", " -- enable snippetSupport", " Capabilities.textDocument.completion.completionItem.snippetSupport = true;", "", " Cattach = function(client)", " local caps = client.resolved_capabilities", " caps.document_formatting = false", " caps.document_highlight = false", " caps.rename = false", " caps.hover = false", " caps.completion = false", " -- caps.publishDiagnostics = false", " end", "", " Lsp_status.config {", " -- sumneko_lua specific status", " select_symbol = function(cursor_pos, symbol)", " if symbol.valueRange then", " local value_range = {", ' ["start"] = {character = 0, line = vim.fn.byte2line(symbol.valueRange[1])},', ' ["end"] = {character = 0, line = vim.fn.byte2line(symbol.valueRange[2])}', " }", ' return require("lsp-status.util").in_range(cursor_pos, value_range)', " end", " end", "", " }", "", " require('lspkind').init()", "end", "", "-- ************** Language Servers-------------------------------------------------------", "function settings.langServers()", " local configs = {", " vimls = {on_attach = All_attach},", " bashls = {on_attach = All_attach},", " texlab = {on_attach = All_attach},", " efm = {", " init_options = {documentFormatting = true},", ' filetypes = {"lua"},', " settings = {", ' rootMarkers = {".git/"},', " languages = {", " lua = {", " {", ' formatCommand = "lua-format -i --keep-simple-function-one-line --break-after-operator --no-keep-simple-control-block-one-line --column-limit=100",', " formatStdin = true", " }", " }", " }", " }", " },", " cssls = {on_attach = All_attach},", " yamlls = {on_attach = All_attach},", " jsonls = {on_attach = All_attach},", " pyls = {on_attach = All_attach},", " cmake = {on_attach = All_attach},", " clangd = {", " on_attach = All_attach,", " capabilities = Capabilities,", " cmd = {", ' "clangd", "--clang-tidy", "--background-index", "--suggest-missing-includes",', ' "--all-scopes-completion", "--completion-style=detailed"', " },", " commands = {CHover = {function() u.clang_hover() end}}", " },", " ccls = {", " on_attach = Cattach", " -- capabilities = Capabilities,", " -- init_options = {", ' -- cache = {directory = "/home/ranjith/.local/share/ccls"},', " -- client = {snippetSupport = true}", " -- }", " },", " sumneko_lua = {", " on_attach = All_attach,", " cmd = {", ' "/usr/bin/lua-language-server", "-E", "/usr/bin/lua-language-server" .. "/main.lua"', " },", " settings = {", " Lua = {", " runtime = {version = 'LuaJIT', path = vim.split(package.path, ';')},", " diagnostics = {globals = {'vim'}},", " workspace = {", " library = {", " [vim.fn.expand('$VIMRUNTIME/lua')] = true,", " [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true", " }", " }", " }", " }", " }", " }", "", " for ls, cfg in pairs(configs) do", " Lsp[ls].setup(cfg)", " end", "end", "", "-- ***********************LSP_Diagnostics---------------------------------------", "", "function settings.lsp_diagnostics()", "", " Lsp.diagnosticls.setup {", ' cmd = {"diagnostic-languageserver", "--stdio"},', ' filetypes = {"sh", "markdown", "json", "yaml", "toml"},', " init_options = {", " linters = {", " shellcheck = {", ' command = "shellcheck",', " debounce = 100,", ' args = {"--format", "json", "-"},', ' sourceName = "shellcheck",', " parseJson = {", ' line = "line",', ' column = "column",', ' endLine = "endLine",', ' endColumn = "endColumn",', ' message = "${message} [${code}]",', ' security = "level"', " },", " securities = {", ' error = "error",', ' warning = "warning",', ' info = "info",', ' style = "hint"', " }", " },", " markdownlint = {", ' command = "markdownlint",', " isStderr = true,", " debounce = 100,", ' args = {"--stdin"},', " offsetLine = 0,", " offsetColumn = 0,", ' sourceName = "markdownlint",', " formatLines = 1,", " formatPattern = {", ' "^.*?:\\\\s?(\\\\d+)(:(\\\\d+)?)?\\\\s(MD\\\\d{3}\\\\/[A-Za-z0-9-/]+)\\\\s(.*)$",', " {line = 1, column = 3, message = {4}}", " }", " }", " },", ' filetypes = {sh = "shellcheck", markdown = "markdownlint", vimwiki = "markdownlint"},', " formatters = {", ' shfmt = {command = "shfmt", args = {"-i", "2", "-bn", "-ci", "-sr"}},', ' prettier = {command = "prettier", args = {"--stdin-filepath", "%filepath"}}', " },", " formatFiletypes = {", ' sh = "shfmt",', ' json = "prettier",', ' yaml = "prettier",', ' toml = "prettier",', ' markdown = "prettier"', " }", " }", " }", " -- Enable diagnostics", ' vim.lsp.handlers["textDocument/publishDiagnostics"] =', " vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {", " underline = true,", " virtual_text = true,", " signs = true,", " update_in_insert = false", " })", "", "end", "", "-- ************** Telescope ---------------------------------------------------------", "function settings.telescope()", " require('telescope').setup {}", " require'telescope'.load_extension('project')", " require('telescope').load_extension('snippets')", "", " local borders = {", " {'─', '│', '─', '│', '┌', '┐', '┘', '└'},", " prompt = {\"─\", \"│\", \" \", \"│\", '┌', '┐', \"│\", \"│\"},", ' results = {"─", "│", "─", "│", "├", "┤", "┘", "└"},', " preview = {'─', '│', '─', '│', '┌', '┐', '┘', '└'}", " }", " No_preview = function()", " return require('telescope.themes').get_dropdown(", " {borderchars = borders, width = 0.5, previewer = false, prompt_title = false})", " end", "", " G.indent_blankline_buftype_exclude = {'terminal'}", " G.indent_blankline_filetype_exclude = {'packer', 'netrw'}", " -- G.indent_blankline_char = '▏'", " G.indent_blankline_use_treesitter = true", " G.indent_blankline_show_trailing_blankline_indent = false", " G.indent_blankline_show_current_context = true", " G.indent_blankline_context_patterns = {", " 'class', 'return', 'function', 'method', '^if', '^while', 'jsx_element', '^for', '^object',", " '^table', 'block', 'arguments', 'if_statement', 'else_clause', 'jsx_element',", " 'jsx_self_closing_element', 'try_statement', 'catch_clause', 'import_statement',", " 'operation_type'", " }", "", "end", "", "return settings" } }, _on_attach = , cancel_request = , config = { _on_attach = , capabilities = { callHierarchy = { dynamicRegistration = false, =
}, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, =
}, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, cmd = { "/usr/bin/lua-language-server", "-E", "/usr/bin/lua-language-server/main.lua" }, filetypes = { "lua" }, flags = {}, get_language_id = , handlers =
, init_options = vim.empty_dict(), log_level = 2, message_level = 2, name = "sumneko_lua", on_attach = , on_exit = , on_init = , root_dir = "/home/ranjith/Nextcloud/Backup", settings = { Lua = { diagnostics = { globals = { "vim" }, =
}, runtime = { path = { "./?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/?.lua", "/usr/local/share/lua/5.1/?.lua", "/usr/local/share/lua/5.1/?/init.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?.lua", "/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/?/init.lua" }, version = "LuaJIT", =
}, telemetry = { enable = false, =
}, workspace = { library = { ["/usr/share/nvim/runtime/lua"] = true, ["/usr/share/nvim/runtime/lua/vim/lsp"] = true, =
}, =
}, =
}, =
}, =
}, handlers =
, id = 2, initialized = true, is_stopped = , messages = { messages = {}, name = "sumneko_lua", progress = { [3] = {} }, status = {} }, name = "sumneko_lua", notify = , offset_encoding = "utf-16", request = , resolved_capabilities = { call_hierarchy = false, code_action = <3>{ codeActionKinds = { "", "quickfix", "refactor.rewrite", "refactor.extract" }, resolveProvider = false }, code_lens = false, code_lens_resolve = false, completion = true, declaration = false, document_formatting = false, document_highlight = true, document_range_formatting = false, document_symbol = true, execute_command = true, find_references = true, goto_definition = true, hover = true, implementation = false, rename = true, signature_help = true, signature_help_trigger_characters = <4>{ "(", "," }, text_document_did_change = 2, text_document_open_close = true, text_document_save = false, text_document_save_include_text = false, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = false, workspace_folder_properties = { changeNotifications = false, supported = false }, workspace_symbol = true }, rpc = { handle = , notify = , pid = 14390, request = }, server_capabilities = { codeActionProvider =
, completionProvider = { resolveProvider = true, triggerCharacters = { "\t", "\n", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", ":", "(", "'", '"', "[", ",", "#", "*", "@", "|", "=", "-", "{", " " } }, definitionProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "\n" }, documentSymbolProvider = true, executeCommandProvider = { commands = { "lua.removeSpace:14390", "lua.solve:14390", "lua.jsonToLua:14390" } }, foldingRangeProvider = true, hoverProvider = true, referencesProvider = true, renameProvider = { prepareProvider = true }, signatureHelpProvider = { triggerCharacters =
}, textDocumentSync = { change = 2, openClose = true }, workspace = {}, workspaceSymbolProvider = true }, stop = , supports_method = , workspaceFolders = { { name = "/home/ranjith/Nextcloud/Backup", uri = "file:///home/ranjith/Nextcloud/Backup" } }, workspace_did_change_configuration = , = { __index = } }, { _cached_buffers = { [8] = { "", "health#scnvim#check", "========================================================================", "## scnvim", " - OK: SCNvim classes installed: /home/ranjith/.local/share/SuperCollider/Extensions/scide_scnvim", ' - OK: has("timers") - success', " - INFO: sclang executable: /usr/bin/sclang", " - INFO: Could not find scdoc render program. See :help |scnvim-help-system| for more information.", " This is an optional dependency and only needed for SCDoc integration.", "", "health#floaterm#check", "========================================================================", "## common", " - INFO: Platform: linux", " - INFO: Nvim: NVIM v0.5.0-dev+1191-gf89bfa686", " - INFO: Plugin: ae7eea5", "", "", "## terminal", " - OK: Terminal emulator is available", "", "## floating", " - OK: Floating window is available", "", "health#vimtex#check", "========================================================================", "## VimTeX", " - OK: Vim version should have full support!", " - OK: General viewer should work properly!", " - OK: Compiler should work!", "", "health#nvim_treesitter#check", "========================================================================", "## Installation", " - OK: `tree-sitter` found 0.19.4 (6dd41e2e45f8b4a00fda21f28bc0ebc6b172ffed) (parser generator, only needed for :TSInstallFromGrammar)", " - OK: `git` executable found.", " - OK: `cc` executable found.", "", "## Parser/Features H L F I", " - query ✓ ✓ ✓ ✓ ", " - c ✓ ✓ ✓ ✓ ", " - cpp ✓ ✓ ✓ ✓ ", " - json ✓ ✓ ✓ ✓ ", " - yaml ✓ ✓ ✓ ✓ ", " - toml ✓ ✓ ✓ ✓ ", " - bash ✓ ✓ ✓ . ", " - supercollider ✓ ✓ ✓ ✓ ", " - lua ✓ ✓ ✓ ✓ ", " - html ✓ ✓ ✓ ✓ ", " - css ✓ . ✓ ✓ ", "", " Legend: H[ighlight], L[ocals], F[olds], I[ndents]", " +) multiple parsers found, only one will be used", " x) errors found in the query, try to run :TSUpdate {lang}", "", "health#lspconfig#check", "========================================================================", "## Checking language server protocol configuration", " - INFO: efm: configuration checked.", " - INFO: clangd: configuration checked.", " - INFO: diagnosticls: configuration checked.", " - INFO: ccls: configuration checked.", " - INFO: sumneko_lua: configuration checked.", " - INFO: pyls: configuration checked.", " - INFO: bashls: configuration checked.", " - INFO: cssls: configuration checked.", " - INFO: yamlls: configuration checked.", " - INFO: jsonls: configuration checked.", " - INFO: vimls: configuration checked.", " - INFO: cmake: configuration checked.", " - INFO: texlab: configuration checked.", "", "health#completion_nvim#check", "========================================================================", "## general", " - OK: neovim version is supported", "", "## completion source", " - OK: all completion sources are valid", "", "## snippet source", " - OK: You are using vim-vsnip as your snippet source", "", "health#nvim#check", "========================================================================", "## Configuration", " - OK: no issues found", "", "## Performance", " - OK: Build type: RelWithDebInfo", "", "## Remote Plugins", " - OK: Up to date", "", "## terminal", " - INFO: key_backspace (kbs) terminfo entry: key_backspace=\\177", " - INFO: key_dc (kdch1) terminfo entry: key_dc=\\E[3~", "", "health#provider#check", "========================================================================", "## Clipboard (optional)", " - OK: Clipboard tool found: xclip", "", "## Python 2 provider (optional)", " - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.", " - ERROR: Python provider error:", " - ADVICE:", " - provider/pythonx: Could not load Python 2:", " python2 not found in search path or not executable.", " python2.7 not found in search path or not executable.", " python2.6 not found in search path or not executable.", " /usr/bin/python is Python 3.9 and cannot provide Python 2.", " - INFO: Executable: Not found", "", "## Python 3 provider (optional)", " - INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment.", " - INFO: Executable: /usr/bin/python3", " - INFO: Python version: 3.9.2", " - INFO: pynvim version: 0.4.3", " - OK: Latest pynvim is installed.", "", "## Python virtualenv", " - OK: no $VIRTUAL_ENV", "", "## Ruby provider (optional)", " - WARNING: `ruby` and `gem` must be in $PATH.", " - ADVICE:", " - Install Ruby and verify that `ruby` and `gem` commands work.", "", "## Node.js provider (optional)", " - INFO: Node.js: v15.12.0", " - INFO: Nvim node.js host: /home/ranjith/.local/share/npm/lib/node_modules/neovim/bin/cli.js", ' - OK: Latest "neovim" npm/yarn package is installed: 4.9.0', "", "## Perl provider (optional)", " - ERROR: perl provider error:", " - ADVICE:", ' - "Neovim::Ext" cpan module is not installed', "" } }, _on_attach = , cancel_request = , config = { capabilities = { callHierarchy = { dynamicRegistration = false, =
}, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }, =
}, =
}, dynamicRegistration = false, =
}, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false, =
}, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, =
}, contextSupport = false, dynamicRegistration = false, =
}, declaration = { linkSupport = true, =
}, definition = { linkSupport = true, =
}, documentHighlight = { dynamicRegistration = false, =
}, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false, =
}, implementation = { linkSupport = true, =
}, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 }, =
}, =
}, references = { dynamicRegistration = false, =
}, rename = { dynamicRegistration = false, prepareSupport = true, =
}, signatureHelp = { dynamicRegistration = false, signatureInformation = { documentationFormat = { "markdown", "plaintext" }, =
}, =
}, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false, =
}, typeDefinition = { linkSupport = true, =
}, =
}, window = { showDocument = { support = false, =
}, showMessage = { messageActionItem = { additionalPropertiesSupport = false, =
}, =
}, workDoneProgress = true, =
}, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, =
}, =
}, workspaceEdit = { resourceOperations = { "rename", "create", "delete" }, =
}, workspaceFolders = true, =
} }, cmd = { "diagnostic-languageserver", "--stdio" }, filetypes = { "sh", "markdown", "json", "yaml", "toml" }, flags = {}, get_language_id = , handlers =
, init_options = { filetypes = { markdown = "markdownlint", sh = "shellcheck", vimwiki = "markdownlint", =
}, formatFiletypes = { json = "prettier", markdown = "prettier", sh = "shfmt", toml = "prettier", yaml = "prettier", =
}, formatters = { prettier = { args = { "--stdin-filepath", "%filepath" }, command = "prettier", =
}, shfmt = { args = { "-i", "2", "-bn", "-ci", "-sr" }, command = "shfmt", =
}, =
}, linters = { markdownlint = { args = { "--stdin" }, command = "markdownlint", debounce = 100, formatLines = 1, formatPattern = { "^.*?:\\s?(\\d+)(:(\\d+)?)?\\s(MD\\d{3}\\/[A-Za-z0-9-/]+)\\s(.*)$", { column = 3, line = 1, message = { 4 } } }, isStderr = true, offsetColumn = 0, offsetLine = 0, sourceName = "markdownlint", =
}, shellcheck = { args = { "--format", "json", "-" }, command = "shellcheck", debounce = 100, parseJson = { column = "column", endColumn = "endColumn", endLine = "endLine", line = "line", message = "${message} [${code}]", security = "level", =
}, securities = { error = "error", info = "info", style = "hint", warning = "warning", =
}, sourceName = "shellcheck", =
}, =
}, =
}, log_level = 2, message_level = 2, name = "diagnosticls", on_attach = , on_exit = , on_init = , root_dir = "/", settings = vim.empty_dict(), =
}, handlers =
, id = 3, initialized = true, is_stopped = , messages = { messages = {}, name = "diagnosticls", progress = {}, status = {} }, name = "diagnosticls", notify = , offset_encoding = "utf-16", request = , resolved_capabilities = { call_hierarchy = false, code_action = false, code_lens = false, code_lens_resolve = false, completion = false, declaration = false, document_formatting = true, document_highlight = false, document_range_formatting = false, document_symbol = false, execute_command = false, find_references = false, goto_definition = false, hover = false, implementation = false, rename = false, signature_help = false, signature_help_trigger_characters = {}, text_document_did_change = 2, text_document_open_close = true, text_document_save = true, text_document_save_include_text = false, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = false, workspace_folder_properties = { changeNotifications = false, supported = false }, workspace_symbol = false }, rpc = { handle = , notify = , pid = 14403, request = }, server_capabilities = { documentFormattingProvider = true, textDocumentSync = 2 }, stop = , supports_method = , workspaceFolders = { { name = "/", uri = "file:///" } }, workspace_did_change_configuration = } } [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 2, jsonrpc = "2.0", method = "shutdown"} [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 2, jsonrpc = "2.0", method = "shutdown"} [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { id = 2, jsonrpc = "2.0", method = "shutdown"} [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 2, jsonrpc = "2.0", result = vim.NIL} [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "exit"} [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 2, jsonrpc = "2.0", result = true} [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "exit"} [ ERROR ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:458 ] "rpc" "efm-langserver" "stderr" '2021/03/30 09:45:51 jsonrpc2 handler: notification "exit" handling error: jsonrpc2: code -32601 message: method not supported: exit\n' [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:492 ] "decoded" { id = 2, jsonrpc = "2.0", result = vim.NIL} [ DEBUG ] 2021-03-30T09:45:51+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:391 ] "rpc.send.payload" { jsonrpc = "2.0", method = "exit"}
mjlbach commented 3 years ago

Hmm, are you sure it doesn't work on a minimal config for you? It works for sumneko at least (for me)

https://user-images.githubusercontent.com/13316262/112954168-02998400-90f3-11eb-8710-116c00a23d07.mov

ranjithshegde commented 3 years ago

Sorry, it doesnt for me. I will post the video/gif in a bit

ranjithshegde commented 3 years ago

okay the trouble was lsp-status was still loading when I tried the minimal config (was in packer - start and not opt)

Now even in my actual config, if lsp-status is not active or part of on-attach then highlighting works!

So not an lsputils problem then. Shall I close?

wbthomason commented 3 years ago

Yes, this is a lsp-status issue until the upstream issue gets fixed or (failing that) we find some hack to work around it.