local lspconfig = require('lspconfig') -- lspconfig.pyright.setup {} -- lspconfig.tsserver.setup {} -- lspconfig.rust_analyzer.setup { -- -- Server-specific settings. See `:help lspconfig-setup` -- settings = { -- ['rust-analyzer'] = { -- check = { -- command = "clippy", -- } -- }, -- }, -- } -- Set ;k to hover and ;a to show code actions vim.api.nvim_create_autocmd("LspAttach", { callback = function(args) local bufnr = args.buf map('n', 'k', vim.lsp.buf.hover, { remap = false }) map('n', 'a', vim.lsp.buf.code_action, { remap = false }) end, })