Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wrapperup committed Jan 27, 2025
1 parent 71a534b commit d473a5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 39 deletions.
2 changes: 1 addition & 1 deletion lua/wrap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if vim.g.neovide then
vim.api.nvim_set_keymap('t', '<C-S-v>', '<C-R>+', { noremap = true, silent = true})
vim.api.nvim_set_keymap('v', '<C-S-v>', '<C-R>+', { noremap = true, silent = true})

vim.o.guifont = "JetBrainsMonoNL NF:h10"
vim.o.guifont = "JetBrainsMonoNL NF:h10:#h-slight"

vim.g.neovide_refresh_rate_idle = 160
vim.g.neovide_refresh_rate = 240
Expand Down
19 changes: 2 additions & 17 deletions lua/wrap/lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ require("lazy").setup({
config = function()
require("rose-pine").setup({
styles = {
bold = true,
bold = false,
italic = false,
transparency = true,
transparency = not vim.g.neovide,
},
before_highlight = function(group, highlight, palette)
if highlight.undercurl then
Expand All @@ -34,19 +34,6 @@ require("lazy").setup({
end
},

{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
opts = {},
config = function()
-- require("ibl").setup {
-- indent = { char = "│" },
-- }
end
},

{ "NMAC427/guess-indent.nvim" },

-- syntax highlighting
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },

Expand Down Expand Up @@ -90,8 +77,6 @@ require("lazy").setup({
event = "VeryLazy",
},

-- { "github/copilot.vim" },

{
"folke/trouble.nvim",
dependencies = "nvim-tree/nvim-web-devicons",
Expand Down
21 changes: 1 addition & 20 deletions lua/wrap/lsp.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- auto indent
require('guess-indent').setup {
filetype_exclude = {
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
}
}

vim.filetype.add({
extension = {
wgsl = "wgsl",
Expand All @@ -21,8 +11,6 @@ vim.filetype.add({
}
})

local parser_config = require ("nvim-treesitter.parsers").get_parser_configs()

-- syntax highlighting
require("nvim-treesitter.configs").setup({
ensure_installed = { "vimdoc", "html", "htmldjango", "c", "cpp", "lua", "typescript", "javascript", "astro", "wgsl", "rust", "embedded_template", "vento" },
Expand Down Expand Up @@ -121,22 +109,15 @@ lspconfig.slangd.setup {
},
}

lspconfig.ts_ls.setup {
on_attach = on_attach,
root_dir = lspconfig.util.root_pattern("package.json"),
single_file_support = false
}
lspconfig.ts_ls.setup {}

lspconfig.lua_ls.setup {
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using
-- (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = {
'vim',
'require'
Expand Down
2 changes: 1 addition & 1 deletion lua/wrap/remaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ local oil = require("oil")
if oil then
vim.keymap.set("n", "-", function() oil.open() end)
else
vim.keymap.set("n", "-", function() vim.cmd "E" end)
vim.keymap.set("n", "-", function() vim.cmd "Ex" end)
end
vim.keymap.set("n", "<leader>pv", function() require("oil").open() end)

Expand Down

0 comments on commit d473a5f

Please sign in to comment.