add language servers
This commit is contained in:
parent
3338d39206
commit
4c9aa0fb04
35
init.lua
35
init.lua
|
|
@ -83,6 +83,9 @@ I hope you enjoy your Neovim journey,
|
|||
|
||||
P.S. You can delete this when you're done too. It's your config now! :)
|
||||
--]]
|
||||
--
|
||||
--vim.lsp.enable 'julials'
|
||||
--vim.lsp.config 'julials'
|
||||
|
||||
-- Set <space> as the leader key
|
||||
-- See `:help mapleader`
|
||||
|
|
@ -102,10 +105,10 @@ vim.g.have_nerd_font = false
|
|||
vim.o.number = true
|
||||
-- You can also add relative line numbers, to help with jumping.
|
||||
-- Experiment for yourself to see if you like it!
|
||||
-- vim.o.relativenumber = true
|
||||
vim.o.relativenumber = true
|
||||
|
||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||
vim.o.mouse = 'a'
|
||||
--vim.o.mouse = 'a'
|
||||
|
||||
-- Don't show the mode, since it's already in the status line
|
||||
vim.o.showmode = false
|
||||
|
|
@ -671,19 +674,30 @@ require('lazy').setup({
|
|||
-- - settings (table): Override the default settings passed when initializing the server.
|
||||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||
local servers = {
|
||||
-- clangd = {},
|
||||
-- gopls = {},
|
||||
-- pyright = {},
|
||||
clangd = {},
|
||||
gopls = {},
|
||||
pyright = {},
|
||||
verible = {},
|
||||
-- rust_analyzer = {},
|
||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||
--
|
||||
-- Some languages (like typescript) have entire language plugins that can be useful:
|
||||
-- https://github.com/pmizio/typescript-tools.nvim
|
||||
--
|
||||
--julials = {
|
||||
-- cmd = {
|
||||
-- 'julia',
|
||||
-- '--startup-file=no',
|
||||
--'--history-file=no',
|
||||
--'-e',
|
||||
---[[
|
||||
-- using LanguageServer, SymbolServer;
|
||||
-- runserver()
|
||||
-- ]],
|
||||
--},
|
||||
-- filetypes = { 'julia' },
|
||||
--},
|
||||
-- But for many setups, the LSP (`ts_ls`) will work just fine
|
||||
-- ts_ls = {},
|
||||
--
|
||||
|
||||
lua_ls = {
|
||||
-- cmd = { ... },
|
||||
-- filetypes = { ... },
|
||||
|
|
@ -731,6 +745,11 @@ require('lazy').setup({
|
|||
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
|
||||
require('lspconfig')[server_name].setup(server)
|
||||
end,
|
||||
['verible'] = function()
|
||||
require('lspconfig').verible.setup {
|
||||
filetypes = { 'verilog', 'systemverilog', 'v', 'sv' },
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
end,
|
||||
|
|
|
|||
Loading…
Reference in New Issue