mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-10 19:56:24 +00:00
lazy.nvim
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
local elixir = require("elixir")
|
||||
|
||||
elixir.setup {
|
||||
nextls = {
|
||||
enable = true, -- defaults to false
|
||||
},
|
||||
credo = {
|
||||
enable = false, -- defaults to true
|
||||
},
|
||||
elixirls = {
|
||||
enable = false,
|
||||
}
|
||||
}
|
@@ -124,48 +124,6 @@ local function config(_config)
|
||||
return _config
|
||||
end
|
||||
|
||||
local elixir = require("elixir")
|
||||
local elixirls = require("elixir.elixirls")
|
||||
|
||||
elixir.setup {
|
||||
credo = {},
|
||||
elixirls = {
|
||||
enabled = true,
|
||||
settings = elixirls.settings {
|
||||
dialyzerEnabled = false,
|
||||
enableTestLenses = false,
|
||||
},
|
||||
on_attach = function(client, bufnr)
|
||||
vim.keymap.set("n", "<space>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("n", "<space>tp", ":ElixirToPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("v", "<space>em", ":ElixirExpandMacro<cr>", { buffer = true, noremap = true })
|
||||
end,
|
||||
}
|
||||
}
|
||||
-- local elixir = require('elixir')
|
||||
-- elixir.setup(config({
|
||||
-- -- repo = "mhanberg/elixir-ls", -- defaults to elixir-lsp/elixir-ls
|
||||
-- -- branch = "mh/all-workspace-symbols", -- defaults to nil, just checkouts out the default branch, mutually exclusive with the `tag` option
|
||||
-- cmd = {"/opt/elixir-ls/rel/language_server.sh"},
|
||||
-- settings = elixir.settings({
|
||||
-- dialyzerEnabled = true,
|
||||
-- fetchDeps = false,
|
||||
-- enableTestLenses = true,
|
||||
-- suggestSpecs = false,
|
||||
-- }),
|
||||
-- on_attach = function(client, bufnr)
|
||||
-- on_attach(client, bufnr)
|
||||
--
|
||||
-- local map_opts = { buffer = true, noremap = true}
|
||||
--
|
||||
-- -- remove the pipe operator
|
||||
-- vim.keymap.set("n", "<leader>fp", ":ElixirFromPipe<cr>", map_opts)
|
||||
-- -- add the pipe operator
|
||||
-- vim.keymap.set("n", "<leader>tp", ":ElixirToPipe<cr>", map_opts)
|
||||
-- vim.keymap.set("v", "<leader>em", ":ElixirExpandMacro<cr>", map_opts)
|
||||
-- end
|
||||
-- }))
|
||||
--
|
||||
-- Enable the following language servers
|
||||
local servers = { 'gopls', 'julials', 'rust_analyzer', 'pyright' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
|
@@ -2,17 +2,6 @@ if vim.g.vscode then
|
||||
return
|
||||
end
|
||||
|
||||
local saga = require 'lspsaga'
|
||||
saga.setup({
|
||||
-- symbols in winbar
|
||||
-- symbol_in_winbar = {
|
||||
-- enable = true,
|
||||
-- click_support = true,
|
||||
-- show_file = true,
|
||||
-- in_custom = true,
|
||||
-- },
|
||||
})
|
||||
|
||||
local function get_file_name(include_path)
|
||||
local file_name = require('lspsaga.symbolwinbar').get_file_name()
|
||||
if vim.fn.bufname '%' == '' then return '' end
|
||||
|
@@ -1,7 +0,0 @@
|
||||
if vim.g.vscode then
|
||||
return
|
||||
end
|
||||
|
||||
require("luasnip/loaders/from_vscode").lazy_load()
|
||||
-- Load ows snippets
|
||||
require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./snippets" } })
|
Reference in New Issue
Block a user