mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Nvim and tmux changes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
require("mason").setup()
|
||||
require("mason-lspconfig").setup()
|
||||
local nvim_lsp = require("lspconfig")
|
||||
|
||||
-- Use an on_attach function to only map the following keys
|
||||
@@ -143,58 +145,3 @@ for _, lsp in ipairs(servers) do
|
||||
})
|
||||
end
|
||||
|
||||
-- Test source-kit
|
||||
--require'lspconfig'.sourcekit.setup{}
|
||||
|
||||
|
||||
-- local sumneko_root_path = os.getenv("HOME") .. ".cache/lua-language-server"
|
||||
-- local sumneko_binary = "/usr/bin/lua-language-server"
|
||||
-- require"lspconfig".sumneko_lua.setup {
|
||||
-- cmd = {sumneko_binary, "-E", sumneko_root_path .. "/main.lua"},
|
||||
-- capabilities = capabilities,
|
||||
-- on_attach = on_attach,
|
||||
-- settings = {
|
||||
-- Lua = {
|
||||
-- runtime = {version = "LuaJIT", path = vim.split(package.path, ";")},
|
||||
-- completion = {enable = true, callSnippet = "Both"},
|
||||
-- diagnostics = {
|
||||
-- enable = true,
|
||||
-- globals = {"vim", "describe"},
|
||||
-- disable = {"lowercase-global"}
|
||||
-- },
|
||||
-- workspace = {
|
||||
-- library = {
|
||||
-- [vim.fn.expand("$VIMRUNTIME/lua")] = true,
|
||||
-- [vim.fn.expand("$VIMRUNTIME/lua/vim/lsp")] = true,
|
||||
-- [vim.fn.expand("/usr/share/awesome/lib")] = true
|
||||
-- },
|
||||
-- -- adjust these two values if your performance is not optimal
|
||||
-- maxPreload = 2000,
|
||||
-- preloadFileSize = 1000
|
||||
-- },
|
||||
-- telemetry = {enable = false}
|
||||
-- }
|
||||
-- }
|
||||
-- }
|
||||
|
||||
|
||||
-- alternative to formatter but yamlfix is not working and I need this for respecting yamllint config
|
||||
-- but yamlfix is messing up ansible files ... 😠
|
||||
-- require('lspconfig')['efm'].setup{
|
||||
-- filetypes = { 'json', 'yaml','lua' },
|
||||
-- init_options = {documentFormatting = true, codeAction = false},
|
||||
-- settings = {
|
||||
-- rootMarkers = {".git/"},
|
||||
-- languages = {
|
||||
-- lua = {
|
||||
-- {formatCommand = "lua-format -i", formatStdin = true}
|
||||
-- },
|
||||
-- yaml = {
|
||||
-- {formatCommand = "yamlfix -", formatStdin = true}
|
||||
-- },
|
||||
-- json = {
|
||||
-- {formatCommand = "prettier", formatStdin = true}
|
||||
-- }
|
||||
-- }
|
||||
-- }
|
||||
-- }
|
||||
|
||||
@@ -13,7 +13,7 @@ nightfox.setup({
|
||||
match_paren = true, -- inverse the highlighting of match_parens
|
||||
},
|
||||
colors = {
|
||||
--red = "#FF000", -- Override the red color for MAX POWER
|
||||
red = "#FF000", -- Override the red color for MAX POWER
|
||||
--bg_alt = "#000000",
|
||||
},
|
||||
hlgroups = {
|
||||
|
||||
Reference in New Issue
Block a user