Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
semanser committed Jan 14, 2024
1 parent 642e0b4 commit 6a1f83b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions nvim/.config/nvim/lua/lsp.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
-- Setup lspconfig.
local capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())

capabilities.textDocument.completion.completionItem.snippetSupport = false

local eslint = {
lintCommand = "eslint_d -f unix --stdin --stdin-filename ${INPUT}",
lintStdin = true,
Expand Down
9 changes: 5 additions & 4 deletions nvim/.config/nvim/lua/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ return {
"hrsh7th/cmp-path",
event = "InsertEnter",
},
{
"hrsh7th/cmp-cmdline",
event = "InsertEnter",
},
"hrsh7th/cmp-cmdline",
{
"hrsh7th/nvim-cmp",
config = function()
local cmp = require("cmp")
local lspkind = require("lspkind")

cmp.setup({
window = {
-- completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
Expand Down

0 comments on commit 6a1f83b

Please sign in to comment.