Merge pull request #39 from mTvare6/main
Added Vlang support and some other remain vim-like fixes
This commit is contained in:
commit
d8399c638f
4 changed files with 13 additions and 5 deletions
|
@ -36,7 +36,7 @@ function on_attach(client)
|
|||
end
|
||||
|
||||
local lspconf = require "lspconfig"
|
||||
local servers = {"html", "cssls", "tsserver", "pyright", "bashls"}
|
||||
local servers = {"html", "cssls", "tsserver", "pyright", "bashls", "vls"}
|
||||
|
||||
for k, lang in pairs(servers) do
|
||||
lspconf[lang].setup {
|
||||
|
@ -44,6 +44,11 @@ for k, lang in pairs(servers) do
|
|||
}
|
||||
end
|
||||
|
||||
local vls_binary = '/usr/local/bin/vls'
|
||||
require'lspconfig'.vls.setup {
|
||||
cmd = {vls_binary},
|
||||
}
|
||||
|
||||
-- lua lsp settings
|
||||
USER = "/home/" .. vim.fn.expand("$USER")
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ return require("packer").startup(
|
|||
-- color related stuff
|
||||
use "siduck76/nvim-base16.lua"
|
||||
use "norcalli/nvim-colorizer.lua"
|
||||
-- use "ollykel/v-vim" -- v syntax highlighter
|
||||
|
||||
-- lsp stuff
|
||||
use "nvim-treesitter/nvim-treesitter"
|
||||
|
@ -42,6 +43,10 @@ return require("packer").startup(
|
|||
use "karb94/neoscroll.nvim"
|
||||
use "kdav5758/TrueZen.nvim"
|
||||
|
||||
-- discord rich presence
|
||||
--use "andweeb/presence.nvim"
|
||||
|
||||
|
||||
use {"lukas-reineke/indent-blankline.nvim", branch = "lua"}
|
||||
end
|
||||
)
|
||||
|
|
|
@ -73,5 +73,5 @@ map("n", "<S-t>", [[<Cmd>tabnew<CR>]], opt)
|
|||
map("n", "<S-x>", [[<Cmd>bdelete<CR>]], opt)
|
||||
|
||||
-- tabnew and tabprev
|
||||
map("n", "<S-l>", [[<Cmd>BufferLineCycleNext<CR>]], opt)
|
||||
map("n", "<S-p>", [[<Cmd>BufferLineCyclePrev<CR>]], opt)
|
||||
map("n", "<S-,>", [[<Cmd>BufferLineCycleNext<CR>]], opt)
|
||||
map("n", "<S-.>", [[<Cmd>BufferLineCyclePrev<CR>]], opt)
|
||||
|
|
|
@ -9,8 +9,6 @@ ts_config.setup {
|
|||
"lua",
|
||||
"json",
|
||||
"python"
|
||||
-- "cpp",
|
||||
-- "rust",
|
||||
},
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
|
Loading…
Reference in a new issue