(module user.lsp {require {nvim aniseed.nvim}}) (global lspconfig (require :lspconfig)) (global treesitter (require :nvim-treesitter.configs)) (nvim.set_keymap "" :gd "lua vim.lsp.buf.definition()" {:silent true :noremap true}) (nvim.set_keymap "" :gh "lua vim.lsp.buf.hover()" {:silent true :noremap true}) (nvim.set_keymap "" :gi "lua vim.lsp.buf.implementation()" {:silent true :noremap true}) (nvim.set_keymap "" :gr "lua vim.lsp.buf.references()" {:silent true :noremap true}) (nvim.set_keymap "" :gs "lua vim.lsp.buf.signature_help()" {:silent true :noremap true}) (nvim.set_keymap "" :e "lua vim.lsp.diagnostic.show_line_diagnostics()" {:silent true :noremap true}) (lspconfig.rust_analyzer.setup {}) (lspconfig.gopls.setup {}) (lspconfig.denols.setup {}) ; (lspconfig.sourcekit.setup {}) ; (lspconfig.ccls.setup ; {:init_options {:clang {:extraArgs ["-I/usr/local/include" ; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1" ; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include" ; "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include" ; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include" ; "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"]}}}) (treesitter.setup {:ensure_installed ["c" "cpp" "python" "go" "rust" "javascript" "lua"] :highlight {:enable true} :indent {:enable true} :textobjects {:select {:enable true :keymaps {:ia "@parameter.inner" :oa "@parameter.outer"}} :swap {:enable true :swap_next {: "@parameter.inner"} :swap_previous {: "@parameter.inner"}}}}) (set nvim.o.completeopt "menuone,noselect")